+ 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
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.
+ 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
+ 1
So what should I do to take string inputs with white spaces included??
+ 1
Wow. that's a legit hack
+ 1
I was getting crazy with this!! I suppose it is just mistake of code playground. Great page!!