Runtime error when submiting code which works fine on local environment.

Revision en5, by munditva, 2020-07-08 20:17:42

I was solving the problems under Edu section when I found that for this problem under Suffix Array lectures, my solution works fine for the second test case on VS Code.

But the same code gives runtime error on CF. I am also unable to decipher the diagnostic comment which came attached with my submission, On further inspection I found that for different versions of gcc compilers, my solution gave runtime error on different test cases.

I am completely perplexed and would be grateful if someone sheds some light on this behavior.

UPD1 : Attaching the error comment screenshot and removing link to my submission.

Tags #errors, #codeforces, gcc

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en5 English munditva 2020-07-08 20:17:42 261
en4 English munditva 2020-07-08 20:10:06 64
en3 English munditva 2020-07-08 20:05:53 1
en2 English munditva 2020-07-08 20:04:59 64
en1 English munditva 2020-07-08 20:03:49 865 Initial revision (published)