getting a Wrong Answer

Hey guys, I am new to code chef and am getting a problem while submission of a code i.e., “Chef and Digits”.
Ive checked my programs output on gcc 4.8.1 with several different cases possible on my local machine.
And the interesting thing is that the answer is always correct even then the website is not accepting my code.

Can u guys help me out? You can download the exe file from the link below:

plz reply if u find any flaw…

It’s prohibited to ask for help !!!

Read the guidelines.

You cannot ask hints to solve the problem.