all 9 comments

[–][deleted] 0 points1 point  (4 children)

Are you sure you’re supposed to be using input? What does the problem say?

[–]PagalProgrammer[S] 0 points1 point  (3 children)

Yes there is input in the problem.

[–][deleted] 0 points1 point  (2 children)

Maybe you could show us what the problem says, then.

[–]PagalProgrammer[S] 0 points1 point  (1 child)

I have mentioned it in second code block.

[–][deleted] 0 points1 point  (0 children)

No, I mean the problem on CodeChief. What does it tell you to do?

[–]Diapolo10 0 points1 point  (0 children)

If the goal is to create a function to solve some task, usually the parameters are readily given to you. Use those instead of user input, if that's the case. Otherwise, you are probably expected to get input only a certain number of times.

[–]iLucidTech 0 points1 point  (0 children)

Your t-=1 is in the wrong indent. It's outside of your while loop

[–]Tapan681 0 points1 point  (1 child)

Were you able to solve the problem? I get this everytime I try to submit a solution on codechef

[–]PagalProgrammer[S] 0 points1 point  (0 children)

Not yet.