求助:请问哪里有错
#include <vector>
#include <map>
#include <string>
#include <iostream>
using namespace std;
int main(void)
{
vector<int> vec;
vec.push_back(3);
vec.push_back(6);
vec.push_back(8);
vec.push_back(4);
for (int i=0;i<vec.size();++i) cout<<vec[i]<<endl;
map<string, string> m;
pair<string,string>p1("S","Shang Hai");
pair<string,string>p2("B","Bei Jing");
pair<string,string>p3("G","Guang Zhou");
m.insert(p3);m.insert(p2);m.insert(p1);
map<string,string>::iterator itor=m.begin();
for (;itor!=m.end();++itor){
cout<<itor->first<<endl;
cout<<itor->second<<endl;
}
return 0;
}