Running code that takes input. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Running code that takes input.

Why does SoloLearn code take input before even running? Is this a limitation or by design? And why?

31st Jan 2020, 5:55 PM
Gevork Bagratyan
5 Answers
+ 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
31st Jan 2020, 6:02 PM
Gordon
Gordon - avatar
+ 2
//Code takes input ,if write inputs code , that's not a problem of sololearn 🤷
31st Jan 2020, 5:57 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 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...
31st Jan 2020, 6:01 PM
Gevork Bagratyan
+ 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?
31st Jan 2020, 6:03 PM
Gevork Bagratyan
+ 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
31st Jan 2020, 6:07 PM
Gordon
Gordon - avatar