My C++ code is working fine giving the correct output in my local Code Editor but it shows Runtime Error (exit code: 2147483647) upon submission.

Revision en1, by PR3S1D3NT, 2021-12-21 23:05:12

Hello, I am new and just starting with competitive programming so I am not quite sure as to why this problem has occurred My Question Problem was-Special Permutation And My Solution to it was (http://codeforces.net/contest/1612/submission/140203265) Is there something I am overlooking or is something wrong with this code?

Tags constructive algorithms, *900, greedy

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English PR3S1D3NT 2021-12-21 23:06:23 0 (published)
en2 English PR3S1D3NT 2021-12-21 23:05:53 27
en1 English PR3S1D3NT 2021-12-21 23:05:12 521 Initial revision (saved to drafts)