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_26050288_19086.cpp:18:9: error: macro names must be identifiers
 #define 400000+5
         ^
0_0_26050288_19086.cpp:22:4: error: 'N' was not declared in this scope
 }e[N];
    ^
0_0_26050288_19086.cpp:24:10: error: 'N' was not declared in this scope
 int head[N], color[N];
          ^
0_0_26050288_19086.cpp:24:20: error: 'N' was not declared in this scope
 int head[N], color[N];
                    ^
0_0_26050288_19086.cpp: In function 'void init()':
0_0_26050288_19086.cpp:28:8: error: 'head' was not declared in this scope
     me(head); me(color);
        ^
0_0_26050288_19086.cpp:16:22: note: in definition of macro 'me'
 #define me(x) memset(x, -1, sizeof(x))
                      ^
0_0_26050288_19086.cpp:28:18: error: 'color' was not declared in this scope
     me(head); me(color);
                  ^
0_0_26050288_19086.cpp:16:22: note: in definition of macro 'me'
 #define me(x) memset(x, -1, sizeof(x))
                      ^
0_0_26050288_19086.cpp: In function 'void add(int, int)':
0_0_26050288_19086.cpp:32:5: error: 'e' was not declared in this scope
     e[cnt].to=v;
     ^
0_0_26050288_19086.cpp:33:17: error: 'head' was not declared in this scope
     e[cnt].next=head[u];
                 ^
0_0_26050288_19086.cpp: In function 'int bfs(int)':
0_0_26050288_19086.cpp:40:5: error: 'color' was not declared in this scope
     color[x]=0;
     ^
0_0_26050288_19086.cpp:45:19: error: 'head' was not declared in this scope
         for(int i=head[v]; ~i; i=e[i].next)
                   ^
0_0_26050288_19086.cpp:45:34: error: 'e' was not declared in this scope
         for(int i=head[v]; ~i; i=e[i].next)
                                  ^
0_0_26050288_19086.cpp: In function 'int main()':
0_0_26050288_19086.cpp:69:16: error: 'color' was not declared in this scope
             if(color[i]==-1) k=bfs(i);
                ^


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-10-06 19:18:36, Gzip enabled