Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_872_12_24464.cpp:38:1: error: 'unordered_map' does not name a type
 unordered_map<pair<int,int>,int>evis;
 ^
1_872_12_24464.cpp:39:1: error: 'unordered_map' does not name a type
 unordered_map<int,int>huan;
 ^
1_872_12_24464.cpp: In function 'void dfs(ll, ll)':
1_872_12_24464.cpp:53:12: error: 'evis' was not declared in this scope
         if(evis[{u,v}]&&evis[{v,u}])continue;
            ^
1_872_12_24464.cpp:56:13: error: 'evis' was not declared in this scope
             evis[{u,v}]=1;
             ^
1_872_12_24464.cpp:58:13: error: 'huan' was not declared in this scope
             huan[depth[u]-depth[v]+1]++;
             ^
1_872_12_24464.cpp: In function 'int main()':
1_872_12_24464.cpp:87:5: error: 'unordered_map' was not declared in this scope
     unordered_map<int,int>::iterator it;
     ^
1_872_12_24464.cpp:87:19: error: expected primary-expression before 'int'
     unordered_map<int,int>::iterator it;
                   ^
1_872_12_24464.cpp:88:9: error: 'it' was not declared in this scope
     for(it=huan.begin();it!=huan.end();it++)
         ^
1_872_12_24464.cpp:88:12: error: 'huan' was not declared in this scope
     for(it=huan.begin();it!=huan.end();it++)
            ^


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