+ 1

Pls tell what is wrong

https://code.sololearn.com/c29Qbv7VOwk6/?ref=app EOF Error I don't understand This code is from official solution. It works in practice but when i try to run it in any other compiler (including sololearns) it gives an error Btw, can you explain me what is eof error simplify

9th Jul 2022, 12:00 AM
Vlonico
Vlonico - avatar
2 Antworten
+ 2
Your Problem's that you give ONE Line Input when you use SoloLearn. But you need to make multiply lines (5 in your case) and Run them. Write them Like that before submit: 10 3 20 16 15 edit: You can see that in my post https://www.sololearn.com/post/1702905/?ref=app
9th Jul 2022, 1:04 AM
Felix Alcor
Felix Alcor - avatar
+ 3
salmon cat EOF error : End Of File error As Felix Alcor has stated, this is created when the number of inputs given by the user are less than that required by the code.
9th Jul 2022, 2:47 AM
Rik Wittkopp
Rik Wittkopp - avatar