0_0_37257836_4701.cpp:5:1: error: expected ',' or ';' before 'int'
int h[N], e[N], ne[N], idx;
^
0_0_37257836_4701.cpp: In function 'void add(int, int, double)':
0_0_37257836_4701.cpp:15:2: error: 'e' was not declared in this scope
e[idx] = b, ne[idx] = h[a], w[idx] = c, h[a] = idx++;
^
0_0_37257836_4701.cpp:15:4: error: 'idx' was not declared in this scope
e[idx] = b, ne[idx] = h[a], w[idx] = c, h[a] = idx++;
^
0_0_37257836_4701.cpp:15:14: error: 'ne' was not declared in this scope
e[idx] = b, ne[idx] = h[a], w[idx] = c, h[a] = idx++;
^
0_0_37257836_4701.cpp:15:24: error: 'h' was not declared in this scope
e[idx] = b, ne[idx] = h[a], w[idx] = c, h[a] = idx++;
^
0_0_37257836_4701.cpp: In function 'bool spfa()':
0_0_37257836_4701.cpp:34:15: error: 'h' was not declared in this scope
for(int i = h[t]; ~i; i = ne[i])
^
0_0_37257836_4701.cpp:34:29: error: 'ne' was not declared in this scope
for(int i = h[t]; ~i; i = ne[i])
^
0_0_37257836_4701.cpp:36:12: error: 'e' was not declared in this scope
int j = e[i];
^
0_0_37257836_4701.cpp: In function 'int main()':
0_0_37257836_4701.cpp:58:11: error: 'h' was not declared in this scope
memset(h, -1, sizeof h);
^
0_0_37257836_4701.cpp:59:4: error: 'idx' was not declared in this scope
idx = 0;
^
|