0
Running code that takes input.
Why does SoloLearn code take input before even running? Is this a limitation or by design? And why?
5 Réponses
+ 4
Yes, because it compiles all non-web code at server side, so it need entering all input before sending code back to server.
It is a limitation
see this discussion :
https://www.sololearn.com/post/44879/?ref=app
+ 2
//Code takes input ,if write inputs code , that's not a problem of sololearn 🤷
+ 1
Sorry, let me clarify. Let's say I write:
cout << "Input a number";
cin >> num;
SoloLearn prompts that the program needs an input before running. I dont even get to the output yet. This is inconvenient for the user, because half the time they don't know what to input...
+ 1
Thank you. This makes the SoloLearn app lightweight I assume, because it doesn't need to download the necessary compilers for each language, yes?
+ 1
Yes only web code are compiled locally.
That's also why some new JavaScript syntax doesn't work on users with older version browsers
See this
https://www.sololearn.com/post/44879/?ref=app