NZEC , runtime error

I am getting runtime error though i am getting correct output and the code ran in the much before the limited time limit please help i am a baginner this is my second code on code chef and my first solution for the contest .
the code is

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

Acess is denied. Could you paste the formatted code here?

Instead start practicing on codeforces

Not sure if you are aware or not but on empty custom input if you Run the code(not submit) you will get NZEC error. If that is the case I suggest you to submit your solution and see if it gets a correct submission.

Also your link is not accessible.