0 test cases passed

can you please have a loot at my code at tell me where am i going wrong

Hey @HyperX
Please share ur code in Coding Blocks IDE

Hey @HyperX
Mentioned the changes in comments : https://ide.codingblocks.com/s/379890 :slight_smile:
U cant input as integers because

00001 will be considered 1

If this resolves ur query then please mark it as resolved :slight_smile:

i tried inputting as string as well, then only 1 test case was passed. one was failed

You must have forgot endl in that case after every testcase
I added that as well

okay, but why do we need to include endl after every test case

Endl basically takes to next line
So this is output format when testcases are there

Output_testcase_1
Output_testcase_2
Output_testcase_3
…

That is why we use endl

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.