Is array sorted

this code -https://ide.codingblocks.com/s/41008 passes all cases on https://hack.codingblocks.com/contests/c/537/366 but fails 1 case on
https://online.codingblocks.com/player/10922/content/4731 because, i guess, there is a constraint which says -10^9<i<10^9

Pls help, thanks

Heyy @apoorvagupta96 ! Your solution is correct for all the given constraint . Sometimes you get error due to some internal error . So Chill :slight_smile:

alright, thank you, actually i tried a few times but couldn’t get through

I tried again, but still the same!