+ 1
How do solo learn play ground compile codes and run it on mobile....
every time I see people write codes in different programming languages but most apart from web will never run on my phone. please oooh, for those people that normally upvote such codes, how do you see the output???? how does it work?, please am confused!!!
4 Respuestas
+ 3
Some authors put "sample input" in the comments to the code, but often you have to read the code to see what they want.
You can also just send blank input and see if the program crashes.
Again, it's up to the authors whether they give you hints on bad input.
Ace's codes (look in Trending) often choose default values so you can see what the program does.
+ 4
Just hit [Run]. They actually run on SoloLearn's server, which sends you the output.
+ 3
A couple examples from Ace's code that deal with "no input" different ways:
Gives you a nice error message with instructions:
https://code.sololearn.com/cUx55EsTKnaz/?ref=app
Chooses a default value and continues anyway:
https://code.sololearn.com/cwuDo4hqI0A8/?ref=app
0
you're saying that I'll have had to wait for a longer time. but some codes require my input and I don't even know why and what am prompted to input