Closed SolalPirelli closed 7 years ago
My personal preference would be to keep the standard unspecified in the default compile script. This way the compiler will always pick a standard that is well supported, and the script is future proof.
Looking at the GCC doc archives, it seems there was a sudden jump recently from having C++98 (well-supported for quite a while, but old) as the default to C++14 (pretty new), which may indicate that in the future the default version will move quicker.
I'll close this, since it seems to be a problem that will fix itself fairly soon.
The first version of gcc to fully support C++11 was 4.8.1, which was released in May 2013. Even Ubuntu 14.04 LTS includes it.
As for C11, the features not in GCC 4.8 seem extremely unlikely to be used in programming competitions.
I suggest changing the default C compile script to include
-std=c11
and C++ to include-std=c++11
.