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