6 14 C:\Users\admin\Desktop\日常.cpp [Error] expected primary-expression before '||' token
时间: 2023-09-28 10:04:50 浏览: 53
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.
相关问题
105 20 C:\Users\aaa\Desktop\ZFNet1.cpp [Error] expected primary-expression before 'float'
这个错误提示是因为在文件 "ZFNet1.cpp" 的某一行代码中,出现了预期的主表达式之前缺少了 "float" 关键字。主表达式是指能够独立成为一个完整的表达式的部分,而在这里缺少了 "float",导致编译器无法识别该表达式。
你可以检查一下在这一行代码之前是否有遗漏了声明或定义 "float" 类型的变量,或者是否存在其他语法错误。另外,也可以提供更多的代码上下文,以便更好地帮助你解决问题。
51 12 C:\Users\19746\Desktop\未命名2.cpp [Error] expected primary-expression before int
这个错误提示是因为在 C++ 的语法中,某些关键字不能直接作为变量名使用,比如 int、double 等,因为它们是 C++ 的基本数据类型。你应该检查代码中是否有类似于将 int 作为变量名的错误,可能需要修改变量名或者添加适当的修饰符。同时,你也可以将出错的代码行和前面的一些代码一并提供,这样可以更好地帮助解决问题。