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://mirror.codeforces.com/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://mirror.codeforces.com/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)