g++ compiler

I wanted to know whether codechef supports c++ programs written in g++ or we have to compile it using gcc?

I found that indeed codechef compiler shows error, if we use cout,cin. So instead we have to use printf,scanf.

According to FAQ, CodeChef compiles with g++. There is a lot of coders using cin and cout, this shouldn’t be a problem (exceept TLE).

1 Like