prog.cpp: In function ‘int main()’:
prog.cpp:10:2: error: ‘map’ was not declared in this scope
map<int, int> Mymap;
^
prog.cpp:10:6: error: expected primary-expression before ‘int’
map<int, int> Mymap;
^
prog.cpp:10:6: error: expected ‘;’ before ‘int’
prog.cpp:11:6: error: expected primary-expression before ‘int’
map<int, int>::iterator it;
^
prog.cpp:11:6: error: expected ‘;’ before ‘int’
prog.cpp:25:18: error: ‘Mymap’ was not declared in this scope
if(st[j]=='0')Mymap[0]++;
^
prog.cpp:26:18: error: ‘Mymap’ was not declared in this scope
if(st[j]=='1')Mymap[1]++;
^
prog.cpp:27:18: error: ‘Mymap’ was not declared in this scope
if(st[j]=='2')Mymap[2]++;
^
prog.cpp:28:18: error: ‘Mymap’ was not declared in this scope
if(st[j]=='3')Mymap[3]++;
^
prog.cpp:29:18: error: ‘Mymap’ was not declared in this scope
if(st[j]=='4')Mymap[4]++;
^
prog.cpp:30:18: error: ‘Mymap’ was not declared in this scope
if(st[j]=='5')Mymap[5]++;
^
prog.cpp:31:18: error: ‘Mymap’ was not declared in this scope
if(st[j]=='6')Mymap[6]++;
^
prog.cpp:32:18: error: ‘Mymap’ was not declared in this scope
if(st[j]=='7')Mymap[7]++;
^
prog.cpp:33:18: error: ‘Mymap’ was not declared in this scope
if(st[j]=='8')Mymap[8]++;
^
prog.cpp:34:18: error: ‘Mymap’ was not declared in this scope
if(st[j]=='9')Mymap[9]++;
^
prog.cpp:37:6: error: ‘it’ was not declared in this scope
for(it=Mymap.begin(); it!=Mymap.end(); it++)
^
prog.cpp:37:9: error: ‘Mymap’ was not declared in this scope
for(it=Mymap.begin(); it!=Mymap.end(); it++)
^