错误 1 error C2143: 语法错误 : 缺少“;”(在“<”的前面)d:\backup\datastruct\algorithms\贪心算法\活动选择问题\活动选择问题\pro.h15
错误 2 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 intd:\backup\datastruct\algorithms\贪心算法\活动选择问题\活动选择问题\pro.h15
错误 3 error C2238: 意外的标记位于“;”之前d:\backup\datastruct\algorithms\贪心算法\活动选择问题\活动选择问题\pro.h15
错误 4 error C2061: 语法错误 : 标识符“vector”d:\backup\datastruct\algorithms\贪心算法\活动选择问题\活动选择问题\pro.h17
错误 5 error C2065: “result”: 未声明的标识符d:\backup\datastruct\algorithms\贪心算法\活动选择问题\活动选择问题\pro.h30
错误 2 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 intd:\backup\datastruct\algorithms\贪心算法\活动选择问题\活动选择问题\pro.h15
错误 3 error C2238: 意外的标记位于“;”之前d:\backup\datastruct\algorithms\贪心算法\活动选择问题\活动选择问题\pro.h15
错误 4 error C2061: 语法错误 : 标识符“vector”d:\backup\datastruct\algorithms\贪心算法\活动选择问题\活动选择问题\pro.h17
错误 5 error C2065: “result”: 未声明的标识符d:\backup\datastruct\algorithms\贪心算法\活动选择问题\活动选择问题\pro.h30
错误 6 error C2228: “.push_back”的左边必须有类/结构/联合 d:\backup\datastruct\algorithms\贪心算法\活动选择问题\活动选择问题\pro.h30
在定义之前加上命名空间std

本文列举了在使用C++实现贪心算法之活动选择问题过程中遇到的典型编译错误,包括语法错误、类型缺失等问题,并提供了具体的错误位置及文件路径。通过修正这些错误可以确保代码正确编译。
652

被折叠的 条评论
为什么被折叠?



