4th Mar 2020, 10:13 AM
Banik
Banik - avatar
4 odpowiedzi
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.
4th Mar 2020, 10:37 AM
andriy kan
andriy kan - avatar
+ 1
Thank you guys! I'll try to run the program on my laptop. I hope it will work.
4th Mar 2020, 1:06 PM
Banik
Banik - avatar
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.
4th Mar 2020, 10:33 AM
Fernando Pozzetti
Fernando Pozzetti - avatar
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.
4th Mar 2020, 10:34 AM
Maninder $ingh
Maninder $ingh - avatar