+ 5
SoloLearn input
Why does it ask for input before running the code? It’s very annoying to have to add instructions in comments when the code can just ask.
3 Réponses
+ 3
I mean, if it were to do live inputs, there would be many more ways people could attack the SoloLearn servers. Furthermore, the servers would be under much heavier load from all the requests coming at different times, instead of one request for each code.
+ 4
It's an online compiler so, there's no way to get inputs after compilation. That's why it asks you for inputs; if it seems necessary for the program then it puts the inputs as per as the program's requirements, if not then it simply delete the inputs.
Understand?
+ 1
Input like this: first input
Second input
And so on like this