Please help in Problem: MAXCROSS

Here is my code give’s run time error, in this problem,

can anybody please provide the test cases where it is going out of bound/other error

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

UPDATE:
Found it, i was using N instead of sz in my lambda function