问题:出现错误:未定义标识符“vector” 解决办法: 导入#include <vector>还是不行 后来发现没有添加using namespace std; 添加: using namespace std; 即可!!!