I am getting WA in GNU C++11 but not in the other's version using the same code

Revision en3, by sajidhasan2021, 2020-07-10 21:18:33

I was solving Div.2 116B using GNU C++11 and getting WA for test case 41. After changing the language to GNU C++17, my code was accepted.My question is why I got WA even though there was nothing wrong with the code. I also checked with C ++ 4.3.2 on ideone and got the correct answer for that test case.A very simple code having only loops and arrays..... what makes it WA in C++11.

WA : GNU C++11 submission

Accepted : GNU C++17 submission

Thank you.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English sajidhasan2021 2020-07-10 21:18:33 4
en2 English sajidhasan2021 2020-07-10 21:17:25 44
en1 English sajidhasan2021 2020-07-10 21:14:43 680 Initial revision (published)