Why my code gives WA on all the tests

Hello @Ferogle please wait i am checking your code.

@Ferogle your code is not producing any ouput that is why it is giving the wrong answer.

could you please tell me the correction?

@Ferogle i have just checked and your code is producing the same result for all the test cases but i am not able to find the mistake.
could you please raise the doubt again some other TA will help you in finding the error.

Please give me a solution that gets submitted so that i can debug mine

https://ide.codingblocks.com/s/427326 please look into this and tell me where the error is.this is the solution

check 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.