编译是出现这个错误: error: 'vector' does not name a type 解决方式: 在文件开头添加如下代码: #include <vector> using namespace std;