Why does code playground skip input statements and execute rest statements??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Why does code playground skip input statements and execute rest statements???

23rd Nov 2016, 3:56 PM
Raghav Prakash Agarwal
Raghav Prakash Agarwal - avatar
4 Answers
+ 8
The online compiler handles input in an unusual way. You have to send all the inputs the program requires at once, before it starts running. When the dialogue box comes up for input, write each thing you want to input on its own line. When the code runs, the input statement(s) will take them one by one, as though a user were inputting them.
23rd Nov 2016, 6:00 PM
Tamra
Tamra - avatar
+ 2
This is the most infuriating thing about the SL interpreter. In the meantime I am using CppDroid as a C++ environment, and it works as you would expect it to. But the input aspects of the SL compiler need to change!
23rd Nov 2016, 9:42 PM
Cassius Marcellus Zedaker
Cassius Marcellus Zedaker - avatar
+ 1
thanks
23rd Nov 2016, 6:14 PM
Raghav Prakash Agarwal
Raghav Prakash Agarwal - avatar
- 2
I am not sure but I think CP does not support multiple inputs yet. But as said before I am not experienced with CP. I am using Repl.it for coding.
23rd Nov 2016, 4:36 PM
Andreas K
Andreas K - avatar