错误:代码中意外的符号/输入/字符串常量/数值常数/特殊
我收到了其中一个错误。
Error: unexpected symbol in "<my code>"
Error: unexpected input in "<my code>"
Error: unexpected string constant in "<my code>"
Error: unexpected numeric constant in "<my code>"
Error: unexpected SPECIAL in "<my code>"
Error: unexpected '<some punctuation>' in "<my code>"
Error: unexpected '<reserved word>' in "<my code>"
这个错误意味着什么,我如何修正它?
一些重现错误的简单示例和常见的变体:
a a
## Error: unexpected symbol in "a a"
a\
## Error: unexpected input in "a\"
a""
## Error: unexpected string constant in "a"""
""1
## Error: unexpected numeric constant in """1"
%%
## Error: unexpected SPECIAL in "%%"
,
## Error: unexpected ',' in ","
=
## Error: unexpected '=' in "="
)
## Error: unexpected ')' in ")"
else
## Error: unexpected 'else' in "else"
慕尼黑5688855