F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;
                   ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-17 05:46:57, Gzip enabled