Runtime Error NCEZ

My code is giving correct results on my system , but on codechef it shows NCEZ Runtime error.

Here is the link to the code

http://www.codechef.com/viewsolution/4201227

Please help…!!!

//