error: stray '\\241' in program error

error: stray '\\241' in program means a compilation error in c/c++.

This error means that there are illegal characters in the source program, and the illegal characters need to be removed. Most of it is caused by programmers using Chinese input method or directly copying and pasting code from other places.

The code appears similar to: Chinese spaces, Chinese quotation marks or various Chinese punctuation marks.

Solution:

1. Delete the spaces in the wrong line and the spaces before and after it and try again.

2. Change the color that is obviously different from other punctuation marks. (most compilers have color recognition)

3. Replay all directly.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324637291&siteId=291194637