0_0_37885891_15787.cpp:81:1: error: stray '\307' in program
Ç°ÏòÐÇ:
^
0_0_37885891_15787.cpp:81:1: error: stray '\260' in program
0_0_37885891_15787.cpp:81:1: error: stray '\317' in program
0_0_37885891_15787.cpp:81:1: error: stray '\362' in program
0_0_37885891_15787.cpp:81:1: error: stray '\320' in program
0_0_37885891_15787.cpp:81:1: error: stray '\307' in program
0_0_37885891_15787.cpp:13:1: error: 'vector' does not name a type
vector<int> edg[maxn];
^
0_0_37885891_15787.cpp:14:1: error: 'vector' does not name a type
vector<Edge> net;
^
0_0_37885891_15787.cpp:15:9: error: 'maxn' was not declared in this scope
int dep[maxn];
^
0_0_37885891_15787.cpp:16:9: error: 'maxn' was not declared in this scope
int cur[maxn];
^
0_0_37885891_15787.cpp:17:10: error: 'maxn' was not declared in this scope
bool vis[maxn];
^
0_0_37885891_15787.cpp: In function 'void addedge(int, int, int)':
0_0_37885891_15787.cpp:21:5: error: 'net' was not declared in this scope
net.push_back(Edge(fr,to,cap,0));
^
0_0_37885891_15787.cpp:24:5: error: 'edg' was not declared in this scope
edg[fr].push_back(tot-2);
^
0_0_37885891_15787.cpp: In function 'bool bfs()':
0_0_37885891_15787.cpp:30:12: error: 'vis' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_37885891_15787.cpp:31:5: error: 'queue' was not declared in this scope
queue<int> q;
^
0_0_37885891_15787.cpp:31:5: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from 0_0_37885891_15787.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:96:11: note: 'std::queue'
class queue
^
0_0_37885891_15787.cpp:31:11: error: expected primary-expression before 'int'
queue<int> q;
^
0_0_37885891_15787.cpp:32:5: error: 'q' was not declared in this scope
q.push(s);
^
0_0_37885891_15787.cpp:33:5: error: 'dep' was not declared in this scope
dep[s]=1;vis[s]=1;
^
0_0_37885891_15787.cpp:38:19: error: 'edg' was not declared in this scope
for(int i:edg[p])
^
0_0_37885891_15787.cpp:40:20: error: 'net' was not declared in this scope
if(vis[net[i].to]||net[i].flow>=net[i].cap)continue;
^
0_0_37885891_15787.cpp:41:17: error: 'net' was not declared in this scope
vis[net[i].to]=1;
^
0_0_37885891_15787.cpp: In function 'int dfs(int, int)':
0_0_37885891_15787.cpp:53:16: error: 'cur' was not declared in this scope
for(int &i=cur[fr];i<(int)edg[fr].size();++i)
^
0_0_37885891_15787.cpp:53:31: error: 'edg' was not declared in this scope
for(int &i=cur[fr];i<(int)edg[fr].size();++i)
^
0_0_37885891_15787.cpp:55:18: error: 'net' was not declared in this scope
Edge &it=net[edg[fr][i]];
^
0_0_37885891_15787.cpp:56:12: error: 'dep' was not declared in this scope
if(dep[it.to]==dep[fr]+1)
^
0_0_37885891_15787.cpp:58:49: error: 'min' was not declared in this scope
int t=dfs(it.to,min(x,it.cap-it.flow));
^
0_0_37885891_15787.cpp:58:49: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60:0,
from 0_0_37885891_15787.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:240:5: note: 'std::min'
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
0_0_37885891_15787.cpp:66:15: error: 'dep' was not declared in this scope
if(res==0)dep[fr]=0;
^
0_0_37885891_15787.cpp: In function 'int dinic()':
0_0_37885891_15787.cpp:75:16: error: 'cur' was not declared in this scope
memset(cur,0,sizeof(cur));
^
0_0_37885891_15787.cpp: At global scope:
0_0_37885891_15787.cpp:81:7: error: expected unqualified-id before ':' token
Ç°ÏòÐÇ:
^
0_0_37885891_15787.cpp:88:5: error: redefinition of 'int s'
int s,t;
^
0_0_37885891_15787.cpp:12:5: note: 'int s' previously declared here
int s,t;
^
0_0_37885891_15787.cpp:88:7: error: redefinition of 'int t'
int s,t;
^
0_0_37885891_15787.cpp:12:7: note: 'int t' previously declared here
int s,t;
^
0_0_37885891_15787.cpp:89:10: error: 'maxm' was not declared in this scope
Edge edg[maxm<<2];
^
0_0_37885891_15787.cpp:90:10: error: 'maxn' was not declared in this scope
int head[maxn]; //-1
^
0_0_37885891_15787.cpp:91:9: error: 'maxn' was not declared in this scope
int dep[maxn];
^
0_0_37885891_15787.cpp:92:9: error: 'maxn' was not declared in this scope
int cur[maxn];
^
0_0_37885891_15787.cpp:93:10: error: 'maxn' was not declared in this scope
bool vis[maxn];
^
0_0_37885891_15787.cpp: In function 'void add(int, int, int)':
0_0_37885891_15787.cpp:98:5: error: 'edg' was not declared in this scope
edg[tot].to=to;
^
0_0_37885891_15787.cpp:101:18: error: 'head' was not declared in this scope
edg[tot].nxt=head[fr];
^
0_0_37885891_15787.cpp: In function 'void addedge(int, int, int)':
0_0_37885891_15787.cpp:106:6: error: redefinition of 'void addedge(int, int, int)'
void addedge(int fr,int to,int cap)
^
0_0_37885891_15787.cpp:19:6: note: 'void addedge(int, int, int)' previously defined here
void addedge(int fr,int to,int cap)
^
0_0_37885891_15787.cpp: In function 'bool bfs()':
0_0_37885891_15787.cpp:112:6: error: redefinition of 'bool bfs()'
bool bfs()
^
0_0_37885891_15787.cpp:28:6: note: 'bool bfs()' previously defined here
bool bfs()
^
0_0_37885891_15787.cpp:114:12: error: 'vis' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_37885891_15787.cpp:115:5: error: 'queue' was not declared in this scope
queue<int> q;
^
0_0_37885891_15787.cpp:115:5: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from 0_0_37885891_15787.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:96:11: note: 'std::queue'
class queue
^
0_0_37885891_15787.cpp:115:11: error: expected primary-expression before 'int'
queue<int> q;
^
0_0_37885891_15787.cpp:116:5: error: 'q' was not declared in this scope
q.push(s);
^
0_0_37885891_15787.cpp:117:5: error: 'dep' was not declared in this scope
dep[s]=1;vis[s]=1;
^
0_0_37885891_15787.cpp:122:19: error: 'head' was not declared in this scope
for(int i=head[fr];~i;i=edg[i].nxt)
^
0_0_37885891_15787.cpp:122:33: error: 'edg' was not declared in this scope
for(int i=head[fr];~i;i=edg[i].nxt)
^
0_0_37885891_15787.cpp: In function 'int dfs(int, int)':
0_0_37885891_15787.cpp:133:5: error: redefinition of 'int dfs(int, int)'
int dfs(int fr,int x)
^
0_0_37885891_15787.cpp:49:5: note: 'int dfs(int, int)' previously defined here
int dfs(int fr,int x)
^
0_0_37885891_15787.cpp:137:16: error: 'cur' was not declared in this scope
for(int &i=cur[fr];~i;i=edg[i].nxt)
^
0_0_37885891_15787.cpp:137:29: error: 'edg' was not declared in this scope
for(int &i=cur[fr];~i;i=edg[i].nxt)
^
0_0_37885891_15787.cpp:139:12: error: 'dep' was not declared in this scope
if(dep[edg[i].to]==dep[fr]+1)
^
0_0_37885891_15787.cpp:141:61: error: 'min' was not declared in this scope
int t=dfs(edg[i].to,min(x,edg[i].cap-edg[i].flow));
^
0_0_37885891_15787.cpp:141:61: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60:0,
from 0_0_37885891_15787.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:240:5: note: 'std::min'
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
0_0_37885891_15787.cpp:149:15: error: 'dep' was not declared in this scope
if(res==0)dep[fr]=0;
^
0_0_37885891_15787.cpp: In function 'int dinic()':
0_0_37885891_15787.cpp:153:5: error: redefinition of 'int dinic()'
int dinic()
^
0_0_37885891_15787.cpp:70:5: note: 'int dinic()' previously defined here
int dinic()
^
0_0_37885891_15787.cpp:158:16: error: 'cur' was not declared in this scope
memcpy(cur,head,sizeof(cur));
^
0_0_37885891_15787.cpp:158:20: error: 'head' was not declared in this scope
memcpy(cur,head,sizeof(cur));
^
|