IDEA-Copy the same code and compile an error

I encountered a very strange problem today, that is, an error was reported when copying the same code. It is certain that the syntax is correct. I have found many solutions on the Internet and there is no clear solution. By checking some comments, I probably know the cause of the error. The error locations in the following code are basically special characters, which means that the compiler cannot recognize these special characters. In fact, the two sides have different ways of expressing special characters. This is the case. Can I just express special characters in the way of idea?

Insert picture description here
Just use the compiler to replace the unrecognized special characters. perfect
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_40332952/article/details/108854999