6 14 C:\Users\admin\Desktop\日常.cpp [Error] expected primary-expression before '||' token
时间: 2023-09-28 14:04:50 浏览: 157
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.
相关问题
51 12 C:\Users\19746\Desktop\未命名2.cpp [Error] expected primary-expression before int
这个错误提示是因为在 C++ 的语法中,某些关键字不能直接作为变量名使用,比如 int、double 等,因为它们是 C++ 的基本数据类型。你应该检查代码中是否有类似于将 int 作为变量名的错误,可能需要修改变量名或者添加适当的修饰符。同时,你也可以将出错的代码行和前面的一些代码一并提供,这样可以更好地帮助解决问题。
6 35 C:\Users\29193\Desktop\新建文件夹\作业\未命名1.cpp [Error] expected primary-expression before ')' token
根据你提供的信息,这是一个编译错误。错误信息显示在文件路径为C:\Users\29193\Desktop\新建文件夹\作业\未命名1.cpp的第35行,错误提示是在')'之前缺少了一个主表达式。
这个错误通常是由于语法错误或者括号不匹配导致的。请检查你的代码,确保在该行之前的代码没有语法错误,并且括号的使用是正确的。可能需要仔细检查该行代码周围的语法结构,特别是括号的匹配情况。
如果你能提供更多的代码或者具体的错误信息,我可以给出更准确的帮助。
阅读全文
相关推荐
















