Codeforces and Polygon may be unavailable from December 6, 19:00 (UTC) to December 6, 21:00 (UTC) due to technical maintenance. ×

Something weird related to the versions of C++ compilers

Revision en1, by Eyad_Hantouli, 2024-06-28 13:57:29

Yesterday, I solved Problem B in Educational Codeforces Round 167 (Rated for Div. 2), but when I submitted the solution using GNU C++20 13.2 (64 bit, winlibs), the system gave me a runtime error. (Submission Link: https://codeforces.net/contest/1989/submission/267808899)

I didn't know what caused this error, so I changed the compiler to GNU C++14 6.4.0, and somehow I got accepted! (Submission Link: https://codeforces.net/contest/1989/submission/267843646)

Does anyone have any explanation?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Eyad_Hantouli 2024-06-28 13:57:29 569 Initial revision (published)