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

Правка en1, от 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 - Сжатие массива и НОД, 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!

Теги g++17, g++14

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский adipro1167 2020-06-21 17:14:03 678 Initial revision (published)