请帮忙看看下面代码那里错了
程序代码:
#include <iostream> #include <string> #include <vector> using namespace std; int main() { string s; vector<string> text; while (cin>>s) { text.push_back(s); } for (vector<string>::iterator iter=text.begin();iter!=text.end();++iter) { cout<<*iter; } return 0; }