40 19 C:\Users\86175\Documents\C++\数据结构排序.cpp [Error] expected primary-expression before '&' token
时间: 2023-09-27 21:05:23 浏览: 37
这个错误通常是因为在代码中使用了不正确的语法或语句,导致编译器无法正确识别代码。根据你提供的信息,我猜测可能是你在代码的某个地方使用了 `&` 符号,但是没有正确的语法或语句配合使用,导致编译器无法正确识别。请检查代码中是否有这样的情况,并尝试修改代码以解决问题。如果还有问题,可以提供更多的代码信息和错误提示信息,以便更准确地定位问题。
相关问题
9 16 C:\Users\86152\Documents\c语言(1)\打杂2.cpp [Error] expected primary-expression before '[' token
这个错误通常表示在某个地方使用了不正确的语法,导致编译器无法理解代码的含义。错误信息 `[Error] expected primary-expression before '[' token` 中的 `expected primary-expression` 表示编译器希望在 `[` 符号之前看到一个主表达式(如变量名、常量、函数调用等),但它没有找到这样的表达式。
这种错误可能是因为:
- 变量名或函数名拼写错误,导致编译器找不到该名称
- 括号不匹配,导致表达式语法不正确
- 数组下标使用了非整数类型,或者下标越界
你需要检查代码中使用 `[` 符号的地方,找出语法错误,并进行修正。如果无法解决问题,可以将出错的代码和完整的错误信息一起提供,以便更好地帮助你。
6 14 C:\Users\admin\Desktop\日常.cpp [Error] expected primary-expression before '||' token
This error is indicating that there is an issue with the syntax in your code. Specifically, it is saying that there is an unexpected symbol before the "||" token.
To fix this error, you need to look at the code around where the error is occurring and check for any syntax errors. It is possible that you are missing a closing parenthesis or a semicolon, or that you have an extra symbol that is causing the issue.
Once you have identified the syntax error, fix it and try compiling your code again. If you still encounter errors, repeat the process until all errors have been resolved.