C++编译时报错“count”符号不明确 编译时全局变量count报错,符号不明确。原因是count与std::count冲突,修改变量名或限定为局部变量就可以解决。 转自:C++编译时报错“count”符号不明确