Run-time error in Increasing Decreasing

Can anyone please point out the runtime error, in my code below.

https://www.codechef.com/submit/complete/34820252

Thanks in advanced!