0_0_14706284_5961.cpp:4:1: error: expected ',' or ';' before 'const'
const int EM = 400047
^
0_0_14706284_5961.cpp:8:8: error: 'EM' was not declared in this scope
} edge[EM];
^
0_0_14706284_5961.cpp: In function 'void addedge(int, int, int)':
0_0_14706284_5961.cpp:14:5: error: 'edge' was not declared in this scope
edge[e].frm = cu;
^
0_0_14706284_5961.cpp: In function 'void BFS()':
0_0_14706284_5961.cpp:40:44: error: 'edge' was not declared in this scope
for (int i = head[u]; i != -1; i = edge[i].nxt) {
^
0_0_14706284_5961.cpp: In function 'int Sap()':
0_0_14706284_5961.cpp:60:24: error: 'inf' was not declared in this scope
int temp = inf, inser = n;
^
0_0_14706284_5961.cpp:62:28: error: 'edge' was not declared in this scope
if (temp > edge[stack[i]].cap) {
^
0_0_14706284_5961.cpp:62:33: error: reference to 'stack' is ambiguous
if (temp > edge[stack[i]].cap) {
^
0_0_14706284_5961.cpp:51:14: note: candidates are: int stack [100047]
int cur[VM], stack[VM];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:88,
from 0_0_14706284_5961.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:99:11: note: template<class _Tp, class _Sequence> class std::stack
class stack
^
0_0_14706284_5961.cpp:63:33: error: reference to 'stack' is ambiguous
temp = edge[stack[i]].cap;
^
0_0_14706284_5961.cpp:51:14: note: candidates are: int stack [100047]
int cur[VM], stack[VM];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:88,
from 0_0_14706284_5961.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:99:11: note: template<class _Tp, class _Sequence> class std::stack
class stack
^
0_0_14706284_5961.cpp:64:21: error: 'inser' was not declared in this scope
inser = i;
^
0_0_14706284_5961.cpp:67:17: error: 'edge' was not declared in this scope
edge[stack[i]].cap -= temp;
^
0_0_14706284_5961.cpp:67:22: error: reference to 'stack' is ambiguous
edge[stack[i]].cap -= temp;
^
0_0_14706284_5961.cpp:51:14: note: candidates are: int stack [100047]
int cur[VM], stack[VM];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:88,
from 0_0_14706284_5961.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:99:11: note: template<class _Tp, class _Sequence> class std::stack
class stack
^
0_0_14706284_5961.cpp:68:22: error: reference to 'stack' is ambiguous
edge[stack[i] ^ 1].cap += temp;
^
0_0_14706284_5961.cpp:51:14: note: candidates are: int stack [100047]
int cur[VM], stack[VM];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:88,
from 0_0_14706284_5961.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:99:11: note: template<class _Tp, class _Sequence> class std::stack
class stack
^
0_0_14706284_5961.cpp:71:19: error: 'inser' was not declared in this scope
top = inser;
^
0_0_14706284_5961.cpp:72:17: error: 'edge' was not declared in this scope
u = edge[stack[top]].frm;
^
0_0_14706284_5961.cpp:72:22: error: reference to 'stack' is ambiguous
u = edge[stack[top]].frm;
^
0_0_14706284_5961.cpp:51:14: note: candidates are: int stack [100047]
int cur[VM], stack[VM];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:88,
from 0_0_14706284_5961.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:99:11: note: template<class _Tp, class _Sequence> class std::stack
class stack
^
0_0_14706284_5961.cpp:78:39: error: 'edge' was not declared in this scope
for (i = cur[u]; i != -1; i = edge[i].nxt)
^
0_0_14706284_5961.cpp:85:13: error: reference to 'stack' is ambiguous
stack[top++] = i;
^
0_0_14706284_5961.cpp:51:14: note: candidates are: int stack [100047]
int cur[VM], stack[VM];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:88,
from 0_0_14706284_5961.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:99:11: note: template<class _Tp, class _Sequence> class std::stack
class stack
^
0_0_14706284_5961.cpp:86:17: error: 'edge' was not declared in this scope
u = edge[i].to;
^
0_0_14706284_5961.cpp:89:44: error: 'edge' was not declared in this scope
for (i = head[u]; i != -1; i = edge[i].nxt) {
^
0_0_14706284_5961.cpp:101:21: error: 'edge' was not declared in this scope
u = edge[stack[--top]].frm;
^
0_0_14706284_5961.cpp:101:26: error: reference to 'stack' is ambiguous
u = edge[stack[--top]].frm;
^
0_0_14706284_5961.cpp:51:14: note: candidates are: int stack [100047]
int cur[VM], stack[VM];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:88,
from 0_0_14706284_5961.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:99:11: note: template<class _Tp, class _Sequence> class std::stack
class stack
^
0_0_14706284_5961.cpp: In function 'int main()':
0_0_14706284_5961.cpp:114:19: error: 'inf' was not declared in this scope
int Min = inf, Max = -inf;
^
0_0_14706284_5961.cpp:121:22: error: 'Max' was not declared in this scope
if (x >= Max) {
^
|