(26) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
(26) : error C2143: 语法错误 : 缺少“,”(在“:”的前面)
(26) : error C2530: “str”: 必须初始化引用
(26) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)
(27) : error C2664: “isPalindrome”: 不能将参数 1 从“const int”转换为“const std::string &”
原因如下: 无法从“const int”转换为“const std::string”
无构造函数可以接受源类型,或构造函数重载决策不明确
(28) : error C2664: “std::vector<_Ty>::push_back”: 不能将参数 1 从“const int”转换为“const std::string &”
with
[
_Ty=std::string
]
原因如下: 无法从“const int”转换为“const std::string”
无构造函数可以接受源类型,或构造函数重载决策不明确
(33) : error C2059: 语法错误 : “[”
(33) : error C2143: 语法错误 : 缺少“)”(在“{”的前面)
(33) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)
(34) : error C2065: “a”: 未声明的标识符
(34) : error C2228: “.size”的左边必须有类/结构/联合
类型是“'unknown-type'”
(34) : error C2065: “b”: 未声明的标识符
(34) : error C2228: “.size”的左边必须有类/结构/联合
类型是“'unknown-type'”
(35) : error C2059: 语法错误 : “)”
(36) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
(36) : error C2143: 语法错误 : 缺少“,”(在“:”的前面)
(36) : error C2530: “str”: 必须初始化引用
(36) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)