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_37803335_31588.cpp:13:7: error: 'N' was not declared in this scope
 }edge[N]; 
       ^
0_0_37803335_31588.cpp:14:10: error: 'N' was not declared in this scope
 int head[N],cnt=0;
          ^
0_0_37803335_31588.cpp: In function 'void add(int, int, int)':
0_0_37803335_31588.cpp:20:2: error: 'edge' was not declared in this scope
  edge[cnt].w=w;
  ^
0_0_37803335_31588.cpp:22:17: error: 'head' was not declared in this scope
  edge[cnt].next=head[u];
                 ^
0_0_37803335_31588.cpp: In function 'void dfs(int, int, int)':
0_0_37803335_31588.cpp:29:18: error: 'head' was not declared in this scope
     for (int i = head[u]; ~i; i = edge[i].next) {
                  ^
0_0_37803335_31588.cpp:29:35: error: 'edge' was not declared in this scope
     for (int i = head[u]; ~i; i = edge[i].next) {
                                   ^
0_0_37803335_31588.cpp: In function 'void dij(int)':
0_0_37803335_31588.cpp:48:15: error: 'head' was not declared in this scope
   for(int i = head[ver]; ~i; i = edge[i].next){
               ^
0_0_37803335_31588.cpp:48:34: error: 'edge' was not declared in this scope
   for(int i = head[ver]; ~i; i = edge[i].next){
                                  ^
0_0_37803335_31588.cpp: In function 'void solve()':
0_0_37803335_31588.cpp:66:3: error: 'head' was not declared in this scope
   head[i]=-1;
   ^


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 20:36:45, Gzip enabled