Difference in Submission result while using GNU C++ 14 and GNU G++ 17(64 bit).

Revision en1, by adipro1167, 2020-06-21 17:14:03

Hello Codeforces! In yesterday's contest Codeforces Round 651 (Div. 2), on submitting the solution to B problem 1370B - GCD Compression, I encountered a Runtime Error on Pretest 1, when I submitted with GNU G++ 14 as the programming language. On my Sublime Text 3, it was working fine. Then, I tried submitting with GNU G++ 17(64 bit), and it got accepted. Have a look at my code: 84470670. Please help me in finding which line arose the error in GNU G++ 14 programming language and what is the basic difference between the two versions. Also, which one should I use as my default language? Thanks in advance!

Tags g++17, g++14

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English adipro1167 2020-06-21 17:14:03 678 Initial revision (published)