Vatsalite's blog

By Vatsalite, 13 months ago, In English

An unfortunate incident happened with me during Codeforces Div 3 Round 1016.

I submitted my solution during the contest using GCC 23 (the newer C++ compiler version provided), and it got Accepted on pretests. However, during system testing, my solution failed on the 59th test case due to TLE (Time Limit Exceeded).

Out of curiosity and frustration, I switched the compiler to GCC 17 (the older version used in Codeforces official environment) and submitted the exact same code — and guess what? It passed all test cases successfully and got Accepted.

This clearly shows that the compiler version difference led to performance inconsistency — which in my opinion is very unfair. If using the latest compiler penalizes participants instead of providing advantages, it raises serious concerns about contest fairness.

I hope Codeforces team looks into this and either standardizes the compiler across all phases (pretests & system tests) or provides a clear warning about such possible discrepancies.

Links of submissions- gcc 17-https://mirror.codeforces.com/contest/2093/submission/314625845 gcc 23-https://mirror.codeforces.com/contest/2093/submission/314836586

Special thanks to djm03178 for providing valuable insights regarding the behavior of unordered_set across different compiler versions. For anyone facing a similar issue or wanting to understand this better, I highly recommend reading this blog: https://mirror.codeforces.com/blog/entry/132929

Full text and comments »

  • Vote: I like it
  • +4
  • Vote: I do not like it