0_0_31762856_6369.cpp: In function 'void add_edge(int, int, int)':
0_0_31762856_6369.cpp:15:4: error: 'cnt' was not declared in this scope
e[cnt].v=v;e[cnt].val=val;
^
0_0_31762856_6369.cpp:16:13: error: 'head' was not declared in this scope
e[cnt].nxt=head[u];
^
0_0_31762856_6369.cpp: In function 'void spfa(int, int)':
0_0_31762856_6369.cpp:32:13: error: 'head' was not declared in this scope
for(int i=head[u];i!=-1;i=e[i].nxt)
^
0_0_31762856_6369.cpp:32:32: error: invalid types 'int[int]' for array subscript
for(int i=head[u];i!=-1;i=e[i].nxt)
^
0_0_31762856_6369.cpp:34:13: error: invalid types 'int[int]' for array subscript
int v=e[i].v;
^
0_0_31762856_6369.cpp:35:24: error: invalid types 'int[int]' for array subscript
if(dis[v]>dis[u]+e[i].val)
^
0_0_31762856_6369.cpp:37:22: error: invalid types 'int[int]' for array subscript
dis[v]=dis[u]+e[i].val
^
0_0_31762856_6369.cpp: At global scope:
0_0_31762856_6369.cpp:51:1: error: expected ',' or ';' at end of input
}
^
|