0_0_18085520_26854.cpp:2:28: error: 'N' was not declared in this scope
int p, source, sink, head[N], spot[M], nex[M], edge[M];
^
0_0_18085520_26854.cpp:2:37: error: 'M' was not declared in this scope
int p, source, sink, head[N], spot[M], nex[M], edge[M];
^
0_0_18085520_26854.cpp:2:45: error: 'M' was not declared in this scope
int p, source, sink, head[N], spot[M], nex[M], edge[M];
^
0_0_18085520_26854.cpp:2:54: error: 'M' was not declared in this scope
int p, source, sink, head[N], spot[M], nex[M], edge[M];
^
0_0_18085520_26854.cpp:3:8: error: 'N' was not declared in this scope
int q[N], ch[N];
^
0_0_18085520_26854.cpp:3:15: error: 'N' was not declared in this scope
int q[N], ch[N];
^
0_0_18085520_26854.cpp: In member function 'void graph::clear()':
0_0_18085520_26854.cpp:5:17: error: 'head' was not declared in this scope
p = 1; memset(head, 0, sizeof(head));
^
0_0_18085520_26854.cpp:5:38: error: 'memset' was not declared in this scope
p = 1; memset(head, 0, sizeof(head));
^
0_0_18085520_26854.cpp: In member function 'void graph::add(int, int, int)':
0_0_18085520_26854.cpp:9:3: error: 'nex' was not declared in this scope
nex[++p] = head[x]; head[x] = p; spot[p] = y; edge[p] = c;
^
0_0_18085520_26854.cpp:9:14: error: 'head' was not declared in this scope
nex[++p] = head[x]; head[x] = p; spot[p] = y; edge[p] = c;
^
0_0_18085520_26854.cpp:9:36: error: 'spot' was not declared in this scope
nex[++p] = head[x]; head[x] = p; spot[p] = y; edge[p] = c;
^
0_0_18085520_26854.cpp:9:49: error: 'edge' was not declared in this scope
nex[++p] = head[x]; head[x] = p; spot[p] = y; edge[p] = c;
^
0_0_18085520_26854.cpp: In member function 'int graph::bfs()':
0_0_18085520_26854.cpp:15:3: error: 'q' was not declared in this scope
q[0] = source;
^
0_0_18085520_26854.cpp:16:10: error: 'ch' was not declared in this scope
memset(ch, -1, sizeof(ch));
^
0_0_18085520_26854.cpp:16:28: error: 'memset' was not declared in this scope
memset(ch, -1, sizeof(ch));
^
0_0_18085520_26854.cpp:20:13: error: 'head' was not declared in this scope
for(tp = head[x]; tp; tp = nex[tp])
^
0_0_18085520_26854.cpp:20:31: error: 'nex' was not declared in this scope
for(tp = head[x]; tp; tp = nex[tp])
^
0_0_18085520_26854.cpp:21:7: error: 'edge' was not declared in this scope
if(edge[tp] && ch[spot[tp]]==-1) {
^
0_0_18085520_26854.cpp:21:22: error: 'spot' was not declared in this scope
if(edge[tp] && ch[spot[tp]]==-1) {
^
0_0_18085520_26854.cpp: In member function 'int graph::dfs(int, int)':
0_0_18085520_26854.cpp:33:12: error: 'head' was not declared in this scope
for(tp = head[x]; tp && aug<pre; tp = nex[tp])
^
0_0_18085520_26854.cpp:33:41: error: 'nex' was not declared in this scope
for(tp = head[x]; tp && aug<pre; tp = nex[tp])
^
0_0_18085520_26854.cpp:34:6: error: 'ch' was not declared in this scope
if(ch[spot[tp]]==ch[x]+1 && edge[tp])
^
0_0_18085520_26854.cpp:34:9: error: 'spot' was not declared in this scope
if(ch[spot[tp]]==ch[x]+1 && edge[tp])
^
0_0_18085520_26854.cpp:34:31: error: 'edge' was not declared in this scope
if(ch[spot[tp]]==ch[x]+1 && edge[tp])
^
0_0_18085520_26854.cpp:36:50: error: 'min' was not declared in this scope
int temp = dfs(spot[tp], min(edge[tp], pre-aug));
^
0_0_18085520_26854.cpp:41:12: error: 'ch' was not declared in this scope
if(!aug) ch[x] = -1;
^
|