Why the output says "compilation error"? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why the output says "compilation error"?

I tried it in the compiler of Code::Blocks and Dev c++ but it worked fine, in the compiler of SoloLearn presents this error. this is the code: https://code.sololearn.com/cU36FR836g5E/?ref=app

19th Apr 2018, 11:56 PM
David Escalante
David Escalante - avatar
5 Answers
+ 3
Great. I was on a laptop earlier so I saw the pink rectangles, representing weird characters. I only noticed later that your code displayed ok on a mobile device. Definitely report this to the SoloLearn team. The team should also search all code in the Code Playground for weird characters and replace them with spaces.
20th Apr 2018, 4:07 AM
Emma
+ 2
You have weird characters in the Solo Learn editor (the pink blocks) I removed them, and it now works: https://code.sololearn.com/cw21BYfgw42d/#cpp
20th Apr 2018, 1:46 AM
Emma
+ 2
Try in Chrome browser on a laptop or desktop. They don't appear when viewing on a mobile device it seems. This is a bug with SoloLearn. Can you report it to them? They need to only allow valid characters when typing or pasting code.
20th Apr 2018, 3:03 AM
Emma
+ 1
Could you mention an example of "weird characters"?. I tried to find them and modified the program a bit but i still don't find anything weird
20th Apr 2018, 2:40 AM
David Escalante
David Escalante - avatar
+ 1
I understood after entering SoloLearn from the browser... thank you very much!
20th Apr 2018, 3:49 AM
David Escalante
David Escalante - avatar