#include <vector> using namespace std; 这样就解决了 参考资料: http://blog.sina.com.cn/s/blog_567a58300100x2kf.html