NZEC RUN TIME ERROR

MY program is compiling on my laptop at netbeans and giving me write answer
But while i submitting same code at codechef it gives me runtimeNZEC ERROR

HERE IS link:

and here is my code:
http://www.codechef.com/viewsolution/4108826

please help me anybody to get of this error