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:
-
- comment: you can see on my WA submission that I just printing
2.0but output always0.0for unknown reason :(
- comment: you can see on my WA submission that I just printing
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
%hhufeature :(
- comment: compiler is too old for the
Calling printf frequently is slow in C but fast on C++:
-
- Comment from me: https://mirror.codeforces.com/blog/entry/152448?#comment-1356222
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







