0

Why compiler can not execute this code?

Hi guys, I d gone crazy doing this program on my computer but when I pasted it in Sololearn compiler, it printed: Compiler error even it had worked on DevC++. Maybe because I used both C and C++? https://code.sololearn.com/c4Hd1XzlZJtO/?ref=app

28th Jan 2019, 8:13 PM
Kerim
3 Respuestas
+ 2
Yeah, that is the issue. Sololearn can't read c and c++ at the same time. Try swapping printf for cout and gets for cin.
28th Jan 2019, 8:54 PM
Maneren
Maneren - avatar
0
Even my Python codes don’t work on SoloLearn.
28th Jan 2019, 10:59 PM
Ivan
0
Julien Quentin, if you d read more carefully, I 've written that everything is valid on my compiler on a computer )
29th Jan 2019, 4:21 AM
Kerim