I am getting WA in GNU C++11 but not in the other's version using the same code
Difference between en2 and en3, changed 4 character(s)
I was solving Div.2 [116B](https://codeforces.com/contest/116/problem/B) 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](https://ideone.com/) 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 ](https://codeforces.com/contest/116/submission/86449310)↵

[Accepted : GNU C++17 submission ](https://codeforces.com/contest/116/submission/86449729)↵

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)