Codeforces please upgrade your C compiler! GCC 5 is too old!

Revision en1, by actualtsg, 2026-03-29 15:46:07

GCC 5.1 is too old and slow for today standard! I have encountered so many problem because of it

"qsort" implementation is slow:

"%lf" on printf is not working (scanf is worked), should be "%f" but that for float not double:

    • code 500D: (364906153 WA) (364906215 AC after 10 retries figuring out that the problem was %lf!)
    • comment: you can see on my WA submission that I just printing 2.0 but output always 0.0 for unknown reason :(

sscanf / sprintf is slow:

"%hhu" is not working (can't scan / print unsigned char number from stdin / to stdout directly):

    • comment: compiler is too old for the %hhu feature :(

Calling printf frequently is slow in C but fast on C++:


Conclusion: The old compiler has a lot of problem! Imagine using unoptimized gcc 5 on 2026 >,< Now there is gcc 15 which is 10 versions above. Why not upgrade the compiler? @MikeMirzayanov

Tags codeforces, compiler, c11, gcc

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English actualtsg 2026-03-29 15:46:07 2155 Initial revision (published)