0_0_14074365_30480.cpp:8:21: error: expected unqualified-id before '<' token
using namespace std;</p><p>int n,m,s,t,num,adj[N],dis[N],q[N],a[N],d[N];
^
0_0_14074365_30480.cpp: In function 'void insert(int, int, int)':
0_0_14074365_30480.cpp:15:4: error: 'num' was not declared in this scope
e[num]=(edge){v,w,adj[u]};
^
0_0_14074365_30480.cpp:15:20: error: 'adj' was not declared in this scope
e[num]=(edge){v,w,adj[u]};
^
0_0_14074365_30480.cpp: In function 'int bfs()':
0_0_14074365_30480.cpp:23:9: error: 'dis' was not declared in this scope
memset(dis,0,sizeof(dis));
^
0_0_14074365_30480.cpp:24:6: error: 's' was not declared in this scope
dis[s]=1;
^
0_0_14074365_30480.cpp:25:2: error: 'q' was not declared in this scope
q[++tail]=s;
^
0_0_14074365_30480.cpp:29:9: error: 'adj' was not declared in this scope
for(i=adj[x];~i;i=e[i].pre)
^
0_0_14074365_30480.cpp:33:11: error: 't' was not declared in this scope
if(v==t)
^
0_0_14074365_30480.cpp: In function 'int dfs(int, int)':
0_0_14074365_30480.cpp:42:8: error: 't' was not declared in this scope
if(x==t)
^
0_0_14074365_30480.cpp:45:8: error: 'adj' was not declared in this scope
for(i=adj[x];~i&&cost<limit;i=e[i].pre)
^
0_0_14074365_30480.cpp:46:14: error: 'dis' was not declared in this scope
if(e[i].w&&dis[x]==dis[v=e[i].v]-1)
^
0_0_14074365_30480.cpp: In function 'int Dinic()':
0_0_14074365_30480.cpp:64:12: error: 's' was not declared in this scope
ans+=dfs(s,inf);
^
0_0_14074365_30480.cpp: In function 'int main()':
0_0_14074365_30480.cpp:69:21: error: 'n' was not declared in this scope
while(~scanf("%d",&n))
^
0_0_14074365_30480.cpp:72:10: error: 'd' was not declared in this scope
memset(d,0,sizeof(d));
^
0_0_14074365_30480.cpp:73:10: error: 'adj' was not declared in this scope
memset(adj,-1,sizeof(adj));
^
0_0_14074365_30480.cpp:74:3: error: 'num' was not declared in this scope
num=0;
^
0_0_14074365_30480.cpp:76:16: error: 'a' was not declared in this scope
scanf("%d",&a[i]);
^
0_0_14074365_30480.cpp:79:8: error: 'a' was not declared in this scope
if(a[i]>a[j])
^
0_0_14074365_30480.cpp:84:3: error: 's' was not declared in this scope
s=0;
^
0_0_14074365_30480.cpp:85:3: error: 't' was not declared in this scope
t=n+1;
^
0_0_14074365_30480.cpp:93:22: error: 'a' was not declared in this scope
if(d[j]==d[i]+1&&a[i]<a[j])
^
|