Please read the new rule regarding the restriction on the use of AI tools. ×

WA (c++14) to AC (c++17), same code
Difference between en2 and en3, changed 0 character(s)
As the title suggests, I submitted the identical source code, which in my environment and in c++17 gives the right answer, but in c++14 it gives WA. I am aware this usually involves some sort of default initialization, but I believe my codes does not rely on that.↵
I appreciate your help and insights as to what might be happening!↵

[WA](https://codeforces.net/contest/1196/submission/57881827)↵

[AC](https://codeforces.net/contest/1196/submission/57881818)↵

Two editorials for this problem, but I followed this [one](https://codeforces.net/blog/entry/68655)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Jomax100 2019-07-28 11:21:05 0 (published)
en2 English Jomax100 2019-07-28 11:20:48 4
en1 English Jomax100 2019-07-28 11:20:33 596 Initial revision (saved to drafts)