Getting error EOFError

I am getting EOFError when trying to submit my code to the online judge. I have tested it on my local machine and it works fine logicwise and syntaxwise.

Hey @sanyakaushik2365,
this error comes when you try to compile the code without giving the custom input. I request you to give the input in the Provide Custom Input option and then try compiling the code.

Happy Learning :slightly_smiling_face:.

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.