Solution to error: stray '\357' in program [solution.c]

Table of contents

         1. Reasons

2.Solution


1. Reasons

This error means that there are illegal characters in the source program and the illegal characters need to be removed. This is usually caused by the coder using the Chinese input method or directly copying and pasting code from elsewhere.
Chinese spaces, Chinese quotation marks, and various Chinese punctuation marks appear in the code. Simply modify it and it will be OK.

2.Solution

1). Delete the spaces in the wrong line and the spaces before and after it and type again to see if the problem still occurs.

2). Change the colors that are obviously different from other punctuation marks. (Most compilers have color recognition)

3). In the line where the problem occurs, delete it and type again.

http://t.csdn.cn/hPPVv 

Guess you like

Origin blog.csdn.net/m0_69576880/article/details/125665143