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

1st Mar 2020, 9:43 AM
HenryDev
HenryDev - avatar
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
1st Mar 2020, 9:50 AM
Ipang
+ 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
1st Mar 2020, 9:52 AM
Daljeet Singh
Daljeet Singh - avatar
+ 1
Daljeet Singh You can also space-separate the integers.
1st Mar 2020, 9:55 AM
Seb TheS
Seb TheS - avatar
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.
1st Mar 2020, 9:51 AM
coddy
coddy - avatar
0
I did not find any errors. What did you enter?
1st Mar 2020, 9:51 AM
Seb TheS
Seb TheS - avatar