Codeforces: С++14 is supported

Revision en1, by MikeMirzayanov, 2016-08-30 23:24:32

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.

Tags codeforces, c++, cpp, c++14, g++14

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English MikeMirzayanov 2016-08-30 23:24:32 1198 Initial revision for English translation
ru2 Russian MikeMirzayanov 2016-08-30 23:16:49 104
ru1 Russian MikeMirzayanov 2016-08-30 23:15:30 1152 Первая редакция (опубликовано)