Why this code does not work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
14th Nov 2017, 3:09 PM
Daniela
Daniela - avatar
6 Answers
+ 4
The symbols that you see people using in the code is << and not « https://code.sololearn.com/c93OOpW95FF5/#cpp ^Updated it so you can see.
14th Nov 2017, 3:17 PM
AgentSmith
+ 4
You're not a fool, things just happen sometimes. A fool is someone that doesn't take the feedback/advice and keeps making the same mistake even after they've been given a solution to it. If you copy/pasted anything from somewhere else, just be cautious of issues like this and ensure everything is valid syntax characters.
14th Nov 2017, 3:20 PM
AgentSmith
+ 4
lol Yea, I had a feeling it was a copy/paste error. If you're using Windows, when you copy/paste code, just paste it into Notepad first and then copy/paste it from Notepad instead. That'll remove any of the custom formatting and correct most issues like that.
14th Nov 2017, 3:34 PM
AgentSmith
+ 4
I'll keep it in mind, I didn't know it. Thank you very much! Have a nice day! 😊
14th Nov 2017, 3:39 PM
Daniela
Daniela - avatar
+ 3
ah, jajaj, what a fool! thank you so much 😅
14th Nov 2017, 3:18 PM
Daniela
Daniela - avatar
+ 3
yeah, i wrote this in Telegram, and when i copied the "<<" it seems it changed the format. I didn't notice! 😅
14th Nov 2017, 3:25 PM
Daniela
Daniela - avatar