AquaMoon and Strange Sort — Runtime Error on CIN

Revision en1, by gastonvale99, 2021-07-27 20:54:05

Hi everyone!. Im stuck with a bug in this problem. I tried to debug it, the code gets a runtime error in the cin>>buff line, when trying to get the last number (n=1999, and runtime error at i=1998). I will be glad if you can help me. Thanks!!!

My Submission: 123961933

Problem: 1546C — AquaMoon and Strange Sort

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English gastonvale99 2021-07-27 20:54:05 486 Initial revision (published)