+ 1
User input (cin) problem in Sololearn.
I write a code and i occured a problem. when using sololearn, before the code run, sololearn want user input. so how i can take user input ONLY each time loop start again in sololearn not in start of program? the program run without problem when i run it in my pc. https://code.sololearn.com/c6lHamjinEdI/#cpp
1 Antwort
+ 3
This is a limitation of Code Playground. All input has to be received before the code is sent to the server for compilation. Just do according to the steps listed by the input box. Split multiple input into different lines. E.g.
std::cin >> a >> b;
Input:
3
9