0_0_32019706_32029.cpp:1:1: error: 'include' does not name a type
include<bits/stdc++.h>
^
0_0_32019706_32029.cpp:13:1: error: 'vector' does not name a type
vector<Edge> edges;
^
0_0_32019706_32029.cpp: In function 'void AddEdge(int, int, int)':
0_0_32019706_32029.cpp:17:5: error: 'edges' was not declared in this scope
edges.PB({v,c,head[u]});
^
0_0_32019706_32029.cpp: In function 'bool bfs()':
0_0_32019706_32029.cpp:27:29: error: 'memset' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_32019706_32029.cpp:28:5: error: 'queue' was not declared in this scope
queue<int> q; q.push(S); lv[S] = 1;
^
0_0_32019706_32029.cpp:28:11: error: expected primary-expression before 'int'
queue<int> q; q.push(S); lv[S] = 1;
^
0_0_32019706_32029.cpp:28:19: error: 'q' was not declared in this scope
queue<int> q; q.push(S); lv[S] = 1;
^
0_0_32019706_32029.cpp:32:38: error: 'edges' was not declared in this scope
for(int i = head[u]; ~i; i = edges[i].nxt){
^
0_0_32019706_32029.cpp: In function 'int aug(int, int)':
0_0_32019706_32029.cpp:48:34: error: 'edges' was not declared in this scope
for(int &i = cur[u]; ~i; i = edges[i].nxt){
^
0_0_32019706_32029.cpp:50:56: error: 'min' was not declared in this scope
if(lv[e.v] == lv[u]+1 && (f=aug(e.v,min(a,e.cap)))>0){
^
0_0_32019706_32029.cpp: In function 'int MaxFlow()':
0_0_32019706_32029.cpp:63:37: error: 'memcpy' was not declared in this scope
memcpy(cur,head,sizeof(head));
^
0_0_32019706_32029.cpp: In function 'int newNode()':
0_0_32019706_32029.cpp:81:41: error: 'memset' was not declared in this scope
memset(nd[i].ch,nil,sizeof(nd[i].ch));
^
0_0_32019706_32029.cpp: In function 'int add(int, char*, int)':
0_0_32019706_32029.cpp:98:32: error: 'min' was not declared in this scope
nd[u].val = min(nd[u].val,v);
^
0_0_32019706_32029.cpp: In function 'int main()':
0_0_32019706_32029.cpp:126:31: error: 'scanf' was not declared in this scope
int Test; scanf("%d",&Test);
^
0_0_32019706_32029.cpp:128:9: error: 'edges' was not declared in this scope
edges.clear();
^
0_0_32019706_32029.cpp:143:37: error: 'strlen' was not declared in this scope
reverse(s,s+strlen(s));
^
0_0_32019706_32029.cpp:143:38: error: 'reverse' was not declared in this scope
reverse(s,s+strlen(s));
^
0_0_32019706_32029.cpp:155:26: error: 'reverse' was not declared in this scope
reverse(s,s+8);
^
0_0_32019706_32029.cpp:162:32: error: 'printf' was not declared in this scope
printf("Case #%d: ",kas);
^
0_0_32019706_32029.cpp:165:22: error: 'puts' was not declared in this scope
puts("-1");
^
|