0
How to fix this code? Can somebody help me?
4 Antworten
0
Please, write the problem more clearly.
If you want to fix EOFError that arises in the Sololearn code playground
then you should run your code on the local machine.
EOFError arises in Sololearn code playground because it doesn't support interactive console.
Your code needs user input in a loop (till quit entered).
But Code playground can forward only fixed size text as input for a running program.
+ 1
Thank you guys! I'll try to run the program on my laptop. I hope it will work.
0
I might be wrong, but I haven't seen multiple inputs handled like this in SL before.
You could make it using the first line for the operation name, next line Int and final line another Int.
0
What's wrong with this code this is right?
I think you don't know actually your code is compiled and interpret on sololearn server.so user input is not live. you need to give all input before run your code.