+ 1

This program is not asking for any input and giving no output and this same program runs perfectly in code blocks on my laptop

https://code.sololearn.com/cMFx5StVDcC4/?ref=app

3rd Apr 2020, 12:02 PM
Abdus Samad
Abdus Samad - avatar
5 Réponses
+ 3
Add: #define dummy cin >> x This tricks the playground into thinking you used cin normally allowing any input method you wish.
3rd Apr 2020, 9:19 PM
John Wells
John Wells - avatar
+ 2
It's a problem with code playground not your code's problem. code playground doesn't recognise cin.get() so it sends the code to server without taking input
3rd Apr 2020, 12:07 PM
Salman Nazeer
Salman Nazeer - avatar
+ 1
So what should I do to take string inputs with white spaces included??
3rd Apr 2020, 3:21 PM
Abdus Samad
Abdus Samad - avatar
+ 1
Wow. that's a legit hack
5th Apr 2020, 7:19 PM
Salman Nazeer
Salman Nazeer - avatar
+ 1
I was getting crazy with this!! I suppose it is just mistake of code playground. Great page!!
7th Apr 2020, 3:04 PM
Johnny Mcnepph
Johnny Mcnepph - avatar