(28) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
(28) : error C2143: 语法错误 : 缺少“,”(在“:”的前面)
(28) : error C2530: “str”: 必须初始化引用
(28) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)
(29) : error C2664: “isPalindrome”: 不能将参数 1 从“const int”转换为“const std::string &”
原因如下: 无法从“const int”转换为“const std::string”
无构造函数可以接受源类型,或构造函数重载决策不明确
(30) : error C2664: “std::vector<_Ty>::push_back”: 不能将参数 1 从“const int”转换为“const std::string &”
with
[
_Ty=std::string
]
原因如下: 无法从“const int”转换为“const std::string”
无构造函数可以接受源类型,或构造函数重载决策不明确
(34) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
(34) : error C2143: 语法错误 : 缺少“,”(在“:”的前面)
(34) : error C2530: “str”: 必须初始化引用
(34) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)