An unordered_map issue

Revision en1, by KP56, 2022-06-06 11:02:39

I don't have a lot of experience with c++, but decided to give it a try since I heard it's very good for competitions. My code when used with an older compiler gives a wrong answer and with the new one the solution is correct, but it fails due to a runtime error in test 2. I couldn't find any issue in my code. Am I missing something?

https://codeforces.me/submissions/KP56

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English KP56 2022-06-06 11:02:39 400 Initial revision (published)