0
[SOLVED] Why does 2 cin does not work?
I have seen this error a long time ago but i can't fix it many of my c++ code have this error. Hope you help me https://code.sololearn.com/cSbvd8m2xyiQ/?ref=app
5 Respostas
+ 2
I can run the code (no error message), enter two numbers and see them printed out just fine.
What error are you seeing?
(Edit)
Run this code to understand how to provide inputs in the input dialog, before running the code
https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
+ 1
Khang Tran sl playground accepts inputs like :
1st input + enter
2nd input and submit
edit:
idea is to give all the inputs at once as in code posted by Ipang
+ 1
Daljeet Singh You can also space-separate the integers.
0
What doesn't work for you? If you'll enter digits it'll just show 00 because your variable is an int and not a string.
0
I did not find any errors.
What did you enter?