Runtime error (NZEC) on MAXSPSUM

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

It is my solution but I’m getting an NZEC error plz try to figure out the issue in my code…

You can go through the link and discussion it will give you an information regarding NZEC error