0_0_13707582_27825.cpp:10:28: error: expected ']' before ';' token
#define MAXE 12*105*105+105; //edges
^
0_0_13707582_27825.cpp:12:11: note: in expansion of macro 'MAXE'
int start[MAXE];
^
0_0_13707582_27825.cpp:12:15: error: expected unqualified-id before ']' token
int start[MAXE];
^
0_0_13707582_27825.cpp:10:28: error: expected ']' before ';' token
#define MAXE 12*105*105+105; //edges
^
0_0_13707582_27825.cpp:13:11: note: in expansion of macro 'MAXE'
bool seen[MAXE];
^
0_0_13707582_27825.cpp:13:15: error: expected unqualified-id before ']' token
bool seen[MAXE];
^
0_0_13707582_27825.cpp:10:28: error: expected ']' before ';' token
#define MAXE 12*105*105+105; //edges
^
0_0_13707582_27825.cpp:15:8: note: in expansion of macro 'MAXE'
int to[MAXE];
^
0_0_13707582_27825.cpp:15:12: error: expected unqualified-id before ']' token
int to[MAXE];
^
0_0_13707582_27825.cpp:10:28: error: expected ']' before ';' token
#define MAXE 12*105*105+105; //edges
^
0_0_13707582_27825.cpp:16:10: note: in expansion of macro 'MAXE'
int next[MAXE];
^
0_0_13707582_27825.cpp:16:14: error: expected unqualified-id before ']' token
int next[MAXE];
^
0_0_13707582_27825.cpp:10:28: error: expected ']' before ';' token
#define MAXE 12*105*105+105; //edges
^
0_0_13707582_27825.cpp:17:9: note: in expansion of macro 'MAXE'
int cap[MAXE];
^
0_0_13707582_27825.cpp:17:13: error: expected unqualified-id before ']' token
int cap[MAXE];
^
0_0_13707582_27825.cpp:10:28: error: expected ']' before ';' token
#define MAXE 12*105*105+105; //edges
^
0_0_13707582_27825.cpp:18:10: note: in expansion of macro 'MAXE'
int cost[MAXE];
^
0_0_13707582_27825.cpp:18:14: error: expected unqualified-id before ']' token
int cost[MAXE];
^
0_0_13707582_27825.cpp: In function 'void add(int, int, int, int)':
0_0_13707582_27825.cpp:107:5: error: 'to' was not declared in this scope
to[m] = v;
^
0_0_13707582_27825.cpp:108:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
next[m] = start[u];
^
0_0_13707582_27825.cpp:108:15: error: 'start' was not declared in this scope
next[m] = start[u];
^
0_0_13707582_27825.cpp:110:5: error: 'cap' was not declared in this scope
cap[m] = ca;
^
0_0_13707582_27825.cpp:111:5: error: 'cost' was not declared in this scope
cost[m] = co;
^
0_0_13707582_27825.cpp:116:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
next[m] = start[v];
^
0_0_13707582_27825.cpp: In function 'bool augment(int, int, int)':
0_0_13707582_27825.cpp:129:6: error: 'seen' was not declared in this scope
if (seen[u]) return false;
^
0_0_13707582_27825.cpp:130:2: error: 'seen' was not declared in this scope
seen[u] = true;
^
0_0_13707582_27825.cpp:131:15: error: 'start' was not declared in this scope
for (int e = start[u]; ~e; e = next[e]) {
^
0_0_13707582_27825.cpp:131:39: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for (int e = start[u]; ~e; e = next[e]) {
^
0_0_13707582_27825.cpp:132:7: error: 'cap' was not declared in this scope
if (cap[e] >= f && augment(to[e], t, f)) {
^
0_0_13707582_27825.cpp:132:30: error: 'to' was not declared in this scope
if (cap[e] >= f && augment(to[e], t, f)) {
^
0_0_13707582_27825.cpp: In function 'int max_flow(int, int)':
0_0_13707582_27825.cpp:143:9: error: 'seen' was not declared in this scope
memset(seen, 0, sizeof seen);
^
0_0_13707582_27825.cpp: In function 'void reset()':
0_0_13707582_27825.cpp:158:9: error: 'start' was not declared in this scope
memset(start, -1, sizeof(start));
^
0_0_13707582_27825.cpp:159:9: error: 'seen' was not declared in this scope
memset(seen, false, sizeof(seen));
^
0_0_13707582_27825.cpp:160:9: error: 'to' was not declared in this scope
memset(to, 0, sizeof(to));
^
0_0_13707582_27825.cpp:161:29: error: ISO C++ forbids applying 'sizeof' to an expression of function type [-fpermissive]
memset(next, 0, sizeof(next));
^
0_0_13707582_27825.cpp:161:30: error: cannot resolve overloaded function 'next' based on conversion to type 'void*'
memset(next, 0, sizeof(next));
^
0_0_13707582_27825.cpp:162:9: error: 'cap' was not declared in this scope
memset(cap, 0, sizeof(cap));
^
|