What's wrong with my solution to MAXPLUS problem?

lunchtime

#1

https://www.codechef.com/viewsolution/18668023