After submission...test case is shown wrong

hi sir/mam
i solved this ‘‘delhi odd even problem’’ and provide sample input and gets desired output . also i gave some inputs and it shows correct output,.But when i click on submit button it shows test case is wrong. then i unlock test cases given in solution and check them… output is also coorect for that test cases…

i can’t able to understand what is wrong in my code that it shows wrong test case after submission.

my code link is : https://ide.codingblocks.com/s/252343


refer to this

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.