SHOULD I USE CLANG OR GCC?

I recently bought a MacBook and I was writing a program in c++ and I discovered that clang has some different working that gcc.
clang does not support #include<bits/stdc++.h> and you need to add each library on your own.

What basically my question is …
Should I be using clang for competitive programming or shift to GCC?

Use GCC, It seems everyone uses that the most. Also most CP websites uses gcc.
You can google if you are curious about their differences.

2 Likes

I will say If possible switch to GCC.
You are newbee right now. Many times you will face issues due soln running differently on local vs codechef ide.
Even people who use gcc face this issue due to Undefined Behaviour.
At that time using clang will just increase problems.

3 Likes

Yes, I was also thinking the same
Though some say that errors are more good in clang but maybe the system compiler errors are in gcc.
It would be good to get the same environment locally also.
I just moved to GCC.
Thanks