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