0_0_35933463_4172.cpp:6:22: error: expected ',' or ';' before 'M'
const int N = 100010 M = 2000010, INF = 0x3f3f3f3f;
^
0_0_35933463_4172.cpp:8:13: error: 'M' was not declared in this scope
int h[N], e[M], ne[M], f[M], idx;
^
0_0_35933463_4172.cpp:8:20: error: 'M' was not declared in this scope
int h[N], e[M], ne[M], f[M], idx;
^
0_0_35933463_4172.cpp:8:26: error: 'M' was not declared in this scope
int h[N], e[M], ne[M], f[M], idx;
^
0_0_35933463_4172.cpp: In function 'void add(int, int, int)':
0_0_35933463_4172.cpp:16:2: error: 'e' was not declared in this scope
e[idx] = b, ne[idx] = h[a], f[idx] = c, h[a] = idx ++;
^
0_0_35933463_4172.cpp:16:14: error: 'ne' was not declared in this scope
e[idx] = b, ne[idx] = h[a], f[idx] = c, h[a] = idx ++;
^
0_0_35933463_4172.cpp:16:30: error: 'f' was not declared in this scope
e[idx] = b, ne[idx] = h[a], f[idx] = c, h[a] = idx ++;
^
0_0_35933463_4172.cpp: In function 'bool bfs()':
0_0_35933463_4172.cpp:28:29: error: 'ne' was not declared in this scope
for(int i = h[t]; ~i; i = ne[i])
^
0_0_35933463_4172.cpp:30:12: error: 'e' was not declared in this scope
int j = e[i];
^
0_0_35933463_4172.cpp:31:21: error: 'f' was not declared in this scope
if(d[j] == -1 && f[i])
^
0_0_35933463_4172.cpp: In function 'int find(int, int)':
0_0_35933463_4172.cpp:47:46: error: 'ne' was not declared in this scope
for(int i = cur[u]; ~i && flow < limit; i = ne[i])
^
0_0_35933463_4172.cpp:49:11: error: 'e' was not declared in this scope
int j = e[i];
^
0_0_35933463_4172.cpp:51:26: error: 'f' was not declared in this scope
if(d[j] == d[u] + 1 && f[i])
^
0_0_35933463_4172.cpp: In function 'int dinic()':
0_0_35933463_4172.cpp:64:30: error: 'INF' was not declared in this scope
while(bfs()) res += find(S, INF);
^
0_0_35933463_4172.cpp: In function 'int main()':
0_0_35933463_4172.cpp:82:23: error: 'INF' was not declared in this scope
else add(i, i + n, INF);
^
0_0_35933463_4172.cpp:84:14: error: 'INF' was not declared in this scope
add(S, st, INF);
^
|