Compilation error in code | Sololearn: Learn to code for FREE!


Compilation error in code

Q1 #This is my first code in solo learn.. it is working on net beans.. plz tel me whats the problem in here I have copy-paste this code from my email Q2 # Also can I code in desktop(Netbeans) and post it in challenges ? i mean not player vs player.. the challenges practice code (the sharpening skills section)

6/7/2018 3:23:35 AM


5 Answers

New Answer


Gopal is right. Viewing your code on the desktop site reveals a lot of Unicode. To fix this, simply retype your code into Code Playground, or paste your code in an environment which nullifies the invisible characters. If this is the result of copypasting from Netbeans, I suggest getting another IDE. IntelliJ IDEA, for instance, never gave me such issues. Also, for the love of all that is holy would you please mind enforcing proper indentations...


I think you have copy pasted your code from somewhere and some hidden illegal Unicode characters are in your code. Also you're missing curly bracket to close your pattern_one method.


Try including your import statements.


thanks all members for helping


thanks all for replying