+ 6
Why the sololearn app wants to accept all inputs of program whe we run it initially at one go?
Sometimes it becomes difficult to execute programs with multiple input but it runs effectively on simple program. listen I am taking out fault of this app. this app is very helpful. love you sololearn and happy programmer's day
3 Answers
+ 7
â Short answer: Because SoloLearn's CodePlayground is an Online IDE powered by compilers/interpreters that run on the backend servers.
â Long answer: Online (aka Cloud) compilers/interpreters are fired as soon as you click "Run" asking to compile the code. Your source-code and programming language details are passed to the server. In its turn, the server fires the desired compiler/interpreter and passes your source-code and ALL inputs to it. Only then the output is displayed.
Unfortunately, this is one of the greatest limitations when your program needs runtime inputs. But it makes sense as the whole architecture of online compilers depends on a limited amount of servers that all sololearners are trying to access simultanously. Though it's conceivable that a compiler could actually run in the browserâș but for now, it runs on the server side.
+ 6
Also, this is a common issue and question being asked around here, so if you'd like to learn more about it, you might want to check these older threads:
https://www.sololearn.com/Discuss/168888/?ref=app
https://www.sololearn.com/Discuss/223806/?ref=app
https://www.sololearn.com/Discuss/532452/?ref=app
https://www.sololearn.com/Discuss/203633/loops-inputs-and-sololearn
+ 2
Maybe is for a security reason but if you want, you can share your improvements here
https://www.sololearn.com/Discuss/674097/changing-sololearn