I am glad to inform you that C++14 has been added to the list of supported languages on Codeforces. The choice fell on the compiler MinGW-w64, version of GCC 6.2.0 (will be updated on new releases). If you have Windows, you can easlily install it using PBOX with one command pbox install mingw-w64
.
Besides trendy features of C++14 (not sure there's a lot to the contests), there are some advantages:
- this compiler is faster than mingw-tdm 5.1.0 on cin/cout — for example, reverse a sequence of 106 integers from 1 to 106 runs 1.5 seconds instead of 2.5 (0.3 vs. 1 if you use
std :: ios :: sync_with_stdio (false)
) - works correctly to print a double with the both specifiers %f and %lf (you should read using %lf)
- works correctly to read-write long double with the specifier %Lf
- works correctly to read-write long long both with %lld and %I64d
It seems that lately we remove support of MinGW C++/C++11 (especially since it is difficult to upgrade them to GCC 6 due to backward compatibility issues). Of course, after a while C++14 will appear on Polygon.