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