code playground help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

code playground help

im trying to do a coding class assignment on-the-go , so i cut my code out of my other compiler and pasted it here (in the code playground) i ran it to test how well it would work here and right away i knew something is wrong. the code playground asked for me to give all my inputs at once, which isnt what my code was meant to do. its bare bones intro code, so its supposed to let you read its output before you give an input. how do i make it so that it doesnt ask me to give all the required inputs as soon as i hit run? im doing it on the c++ by the way

27th Feb 2021, 4:53 AM
NotThatZazu
1 Answer
+ 1
You can't, because of simple reason that you code is not going to run here (on your device) Here's how code playground roughly works :- 1) it sends your code file to their servers 2) the code is compiled and run with the input you provided beforehand. 3) the output is logged in a text file which is then sent back to you as output which your program generated. On top of that SL only proved limited time for all this to happen ( half a second approx ) so that all the code requests can be fulfilled without long waiting. P.S. code playground for web languages (HTML+CSS+Js) is completely different thing.
27th Feb 2021, 5:46 AM
Arsenic
Arsenic - avatar