Help with first submission of ATM problem

Hello,

I am trying for the first time to submit a code. But I am getting error ( runtime error NZEC ).

My solution works for given input cases while running it using custom input. The error happens while submitting it.

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

Appreciate any help. Thanks.