UCL Program

Anyone please help me out, I had written this program .This is working fine and showing output correctly in my compiler even when I am checking in codechef compiler it is showing correct output. But when I am submitting the code the online judge is showing wrong answer, I have worked very hard for this program
So please help me out…