+ 1

Timing of Code Input Request

When executing code in the Code Playground, why are inputs requested before any preceding outputs are shown? Can the inputs not be requested at the moment it should be entered, according to the program?

25th Jan 2018, 11:01 AM
Niel Knoblauch
Niel Knoblauch - avatar
4 ответов
+ 4
Our phones don’t compile or run the code, it gets sent to SL servers, along with input if it is required, and it gets compiled and run there. The output then gets sent back. This is also why only text output.
25th Jan 2018, 11:08 AM
Jacob Pembleton
Jacob Pembleton - avatar
+ 3
@Vlad Serbu I don’t know, but it’s not letting me open that link at al.
26th Jan 2018, 5:44 PM
Jacob Pembleton
Jacob Pembleton - avatar
- 1
@Jacob But if that were the case then why does http://cpp.sh support dynamic input?
25th Jan 2018, 11:45 AM
Vlad Serbu
Vlad Serbu - avatar
- 1
Apparently cpp.sh doesn't work over https. Interesting... In any case, the new link should work.
26th Jan 2018, 5:46 PM
Vlad Serbu
Vlad Serbu - avatar