0_0_36636345_10477.cpp:9:1: error: 'unordered_map' does not name a type
unordered_map <string,int> mp;
^
0_0_36636345_10477.cpp:10:1: error: 'unordered_map' does not name a type
unordered_map <int,string> mpback;
^
0_0_36636345_10477.cpp:11:1: error: 'unordered_map' does not name a type
unordered_map<int,string> mpans;
^
0_0_36636345_10477.cpp: In function 'void init()':
0_0_36636345_10477.cpp:28:5: error: 'mp' was not declared in this scope
mp.clear();
^
0_0_36636345_10477.cpp:29:5: error: 'mpback' was not declared in this scope
mpback.clear();
^
0_0_36636345_10477.cpp:30:5: error: 'mpans' was not declared in this scope
mpans.clear();
^
0_0_36636345_10477.cpp: In function 'int main()':
0_0_36636345_10477.cpp:64:12: error: 'mp' was not declared in this scope
if(mp[a]==0)mp[a]=id++;
^
0_0_36636345_10477.cpp:65:12: error: 'mp' was not declared in this scope
if(mp[b]==0)mp[b]=id++;
^
0_0_36636345_10477.cpp:66:15: error: 'mp' was not declared in this scope
int x=mp[a];int y=mp[b];
^
0_0_36636345_10477.cpp:67:9: error: 'mpback' was not declared in this scope
mpback[x]=a;mpback[y]=b;
^
0_0_36636345_10477.cpp:69:9: error: 'mpans' was not declared in this scope
mpans[tot+1]=c;
^
0_0_36636345_10477.cpp:79:19: error: 'mpans' was not declared in this scope
cout<<mpans[i]<<endl;
^
|