#include <iostream>
#include <unordered_map>
#include <algorithm>
#include <vector>
using namespace std;
int main()
{
unordered_map<string,int> map;
map.insert(pair<string,int>("zjl",1));
map.insert(pair<string,int>("dbq",2));
if(map.empty()){
cout<<"map empty"<<endl;
}else{
cout<<"map has datas:"<<map.size()<<endl;
}
unordered_map<string,int>::iterator it;
for(it=map.begin();it!=map.end();it++){
cout<<"key:"<<" "<<it->first<<"value:"<<" "<<it->second<<endl;
}
if((it=map.find("zjl"))!=map.end()){
cout<<"has found:"<<it->second<<endl;
}else{
cout<<"has not found"<<endl;
}
return 0;
}