Why I can do comparisons of ar[i] and ar[i+1] till i<n on my VSCode but not on the Codeforces.

Revision en1, by Suiiinaldo, 2022-09-07 12:27:11

Hey everyone, I wanted to ask one thing that when I iterate through an array and comparing something like ar[i] and ar[i+1] and if I do this in my VSCode and iterating till i<n (which is obviously not possible) but it runs completely fine on my VSCode and doesn't give an error while running it on Codeforces generally the program goes into pretests passed condition and gets rejected in checking phase. Please help because this costed me a very easy problem in the contest.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Suiiinaldo 2022-09-07 12:27:11 570 Initial revision (published)