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