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_16800515_21911.cpp:15:1: error: 'hash_map' does not name a type
 hash_map <int,int> g[MAXN],f[MAXN];
 ^
0_0_16800515_21911.cpp: In function 'void init()':
0_0_16800515_21911.cpp:29:9: error: 'g' was not declared in this scope
         g[i].clear();
         ^
0_0_16800515_21911.cpp:30:9: error: 'f' was not declared in this scope
         f[i].clear();
         ^
0_0_16800515_21911.cpp:58:9: error: 'g' was not declared in this scope
         g[e[i].x][e[i].y]=e[i].z;
         ^
0_0_16800515_21911.cpp: In function 'void work()':
0_0_16800515_21911.cpp:76:13: error: 'g' was not declared in this scope
         if (g[x][y]!=0)
             ^
0_0_16800515_21911.cpp:81:9: error: 'g' was not declared in this scope
         g[x].erase(y);
         ^
0_0_16800515_21911.cpp:83:13: error: 'f' was not declared in this scope
         if (f[x][y]!=0)
             ^
0_0_16800515_21911.cpp:102:21: error: 'f' was not declared in this scope
         if (ans==0) f[x][y]=-1;
                     ^
0_0_16800515_21911.cpp:103:14: error: 'f' was not declared in this scope
         else f[x][y]=ans;
              ^
0_0_16800515_21911.cpp:106:13: error: 'f' was not declared in this scope
         if (f[x][y]==-1) printf("The pair of cities are not connected or too far away.\n");
             ^


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-12-02 04:13:47, Gzip enabled