Issue in cpp! | SoloLearn: Learn to code for FREE!

+2

Issue in cpp!

My code works on code block but not here can someone help please? :( https://code.sololearn.com/ccdGS4Gqkf5b/?ref=app https://code.sololearn.com/ccdGS4Gqkf5b/?ref=app

8/3/2018 7:11:13 PM

Comsis Alexis

5 Answers

New Answer

+10

You have some Unicode characters that were pasted into the code from where you copied it from. They aren't visible on the mobile app but are visible on the web platform. Remove these Unicode characters and your code should be fine

+2

Tried compiling it in an online compiler. Error says "stray '\302' in the program". This is a known and discussed issue about character encoding in different IDE's. Most probably you used tab-keys or shift+space while writing code in codeblocks. Remove tabs and try again. Read this if it helps. https://stackoverflow.com/questions/5167656/error-stray-302-in-program

+1

Thanks a lot!

+1

Thank you too men yes I've removed tabs and it works well

+1

it is good code exillant