Python EOF error

Whenever I try to run a code I am facing this error msg no matter what kind of code it is.
Traceback (most recent call last):
File “./prog.py”, line 30, in
EOFError: EOF when reading a line

code is working fine when I tested on replit or VS Code with custom inputs

I can maybe help, but only if you share your code

you are not supposed to share any code from contests. Share code from a practice problem.

If you need specific help with a contest problem, you need to wait until the contest is over.