hard : The Guessing game ::: Can someone help me getting out of this ? My code is giving correct ans. still it is saying Runtime Error(NZEC)

My code is giving current answer but i dont know why it is not accepting it and giving runtime(NZEC) error, followimg is the link to my code:

NZEC error comes when your program do not exit with 0 status.

Your program must be throwing some exception and exiting for any input. Check your code for any exception it may be creating.Visit this link for further clarification.