0_0_37826341_13716.cpp: In function 'void read(T&)':
0_0_37826341_13716.cpp:7:24: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
x=0;char c=getchar();bool f=0;
^
0_0_37826341_13716.cpp:7:24: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_37826341_13716.cpp:8:21: error: there are no arguments to 'isdigit' that depend on a template parameter, so a declaration of 'isdigit' must be available [-fpermissive]
while(!isdigit(c)) f=c=='-',c=getchar();
^
0_0_37826341_13716.cpp:8:43: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
while(!isdigit(c)) f=c=='-',c=getchar();
^
0_0_37826341_13716.cpp:9:20: error: there are no arguments to 'isdigit' that depend on a template parameter, so a declaration of 'isdigit' must be available [-fpermissive]
while(isdigit(c)) x=x*10+c-'0',c=getchar();
^
0_0_37826341_13716.cpp:9:46: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
while(isdigit(c)) x=x*10+c-'0',c=getchar();
^
0_0_37826341_13716.cpp: At global scope:
0_0_37826341_13716.cpp:16:8: error: 'MAXM' was not declared in this scope
}E[MAXM<<1];
^
0_0_37826341_13716.cpp:17:14: error: 'MAXN' was not declared in this scope
int head[MAXN],ecnt,n;
^
0_0_37826341_13716.cpp:31:13: error: 'MAXN' was not declared in this scope
int dep[MAXN],cur[MAXN];
^
0_0_37826341_13716.cpp:31:23: error: 'MAXN' was not declared in this scope
int dep[MAXN],cur[MAXN];
^
0_0_37826341_13716.cpp: In member function 'void net::init(int)':
0_0_37826341_13716.cpp:20:32: error: 'head' was not declared in this scope
for (int i=0;i<=n;i++) head[i]=0;
^
0_0_37826341_13716.cpp: In member function 'void net::add(int, int, int)':
0_0_37826341_13716.cpp:23:9: error: 'E' was not declared in this scope
E[++ecnt].to=v;
^
0_0_37826341_13716.cpp:25:21: error: 'head' was not declared in this scope
E[ecnt].nxt=head[u];
^
0_0_37826341_13716.cpp: In member function 'bool net::bfs(int, int)':
0_0_37826341_13716.cpp:33:32: error: 'dep' was not declared in this scope
for (int i=0;i<=n;i++) dep[i]=0,cur[i]=head[i];
^
0_0_37826341_13716.cpp:33:41: error: 'cur' was not declared in this scope
for (int i=0;i<=n;i++) dep[i]=0,cur[i]=head[i];
^
0_0_37826341_13716.cpp:33:48: error: 'head' was not declared in this scope
for (int i=0;i<=n;i++) dep[i]=0,cur[i]=head[i];
^
0_0_37826341_13716.cpp:34:9: error: 'queue' was not declared in this scope
queue <int> q;
^
0_0_37826341_13716.cpp:34:16: error: expected primary-expression before 'int'
queue <int> q;
^
0_0_37826341_13716.cpp:35:9: error: 'q' was not declared in this scope
q.push(s);dep[s]=1;
^
0_0_37826341_13716.cpp:35:19: error: 'dep' was not declared in this scope
q.push(s);dep[s]=1;
^
0_0_37826341_13716.cpp:38:24: error: 'head' was not declared in this scope
for (int i=head[u];i;i=E[i].nxt){
^
0_0_37826341_13716.cpp:38:36: error: 'E' was not declared in this scope
for (int i=head[u];i;i=E[i].nxt){
^
0_0_37826341_13716.cpp:40:22: error: 'w' was not declared in this scope
if (!w||dep[v]) continue;
^
0_0_37826341_13716.cpp: In member function 'int net::dfs(int, int, int)':
0_0_37826341_13716.cpp:51:20: error: 'cur' was not declared in this scope
for (int i=cur[u];i;i=E[i].nxt){
^
0_0_37826341_13716.cpp:51:31: error: 'E' was not declared in this scope
for (int i=cur[u];i;i=E[i].nxt){
^
0_0_37826341_13716.cpp:53:18: error: 'w' was not declared in this scope
if (!w||dep[v]!=dep[u]+1) continue;
^
0_0_37826341_13716.cpp:53:21: error: 'dep' was not declared in this scope
if (!w||dep[v]!=dep[u]+1) continue;
^
0_0_37826341_13716.cpp:54:38: error: 'w' was not declared in this scope
int ret=dfs(v,t,min(rest,w));
^
0_0_37826341_13716.cpp:54:39: error: 'min' was not declared in this scope
int ret=dfs(v,t,min(rest,w));
^
0_0_37826341_13716.cpp: At global scope:
0_0_37826341_13716.cpp:74:8: error: 'MAXM' was not declared in this scope
}E[MAXM<<1];
^
0_0_37826341_13716.cpp:75:14: error: 'MAXN' was not declared in this scope
int head[MAXN],ecnt,n;
^
0_0_37826341_13716.cpp:87:14: error: 'MAXN' was not declared in this scope
bool vis[MAXN];
^
0_0_37826341_13716.cpp: In member function 'void graph::add(int, int, int)':
0_0_37826341_13716.cpp:77:9: error: 'E' was not declared in this scope
E[++ecnt].to=v;
^
0_0_37826341_13716.cpp:79:21: error: 'head' was not declared in this scope
E[ecnt].nxt=head[u];
^
0_0_37826341_13716.cpp: In member function 'void graph::init(int)':
0_0_37826341_13716.cpp:85:32: error: 'head' was not declared in this scope
for (int i=0;i<=n;i++) head[i]=0;
^
0_0_37826341_13716.cpp: In member function 'void graph::dijkstra(int*, int)':
0_0_37826341_13716.cpp:89:9: error: 'priority_queue' was not declared in this scope
priority_queue <pair<int,int>,vector<pair<int,int> >,greater<pair<int,int> > > q;
^
0_0_37826341_13716.cpp:89:25: error: 'pair' was not declared in this scope
priority_queue <pair<int,int>,vector<pair<int,int> >,greater<pair<int,int> > > q;
^
0_0_37826341_13716.cpp:89:30: error: expected primary-expression before 'int'
priority_queue <pair<int,int>,vector<pair<int,int> >,greater<pair<int,int> > > q;
^
0_0_37826341_13716.cpp:90:50: error: 'vis' was not declared in this scope
for (int i=0;i<=n;i++) dis[i]=0x7f7f7f7f,vis[i]=0;
^
0_0_37826341_13716.cpp:92:9: error: 'q' was not declared in this scope
q.push(make_pair(0,s));
^
0_0_37826341_13716.cpp:92:29: error: 'make_pair' was not declared in this scope
q.push(make_pair(0,s));
^
0_0_37826341_13716.cpp:96:17: error: 'vis' was not declared in this scope
if (vis[u]) continue;
^
0_0_37826341_13716.cpp:97:13: error: 'vis' was not declared in this scope
vis[u]=1;
^
0_0_37826341_13716.cpp:98:24: error: 'head' was not declared in this scope
for (int i=head[u];i;i=E[i].nxt){
^
0_0_37826341_13716.cpp:98:36: error: 'E' was not declared in this scope
for (int i=head[u];i;i=E[i].nxt){
^
0_0_37826341_13716.cpp:100:35: error: 'w' was not declared in this scope
if (dis[v]>dis[u]+w){
^
0_0_37826341_13716.cpp: At global scope:
0_0_37826341_13716.cpp:111:12: error: 'MAXN' was not declared in this scope
int dis[2][MAXN];
^
0_0_37826341_13716.cpp: In function 'int main()':
0_0_37826341_13716.cpp:114:31: error: 'scanf' was not declared in this scope
while(~scanf("%d %d",&n,&m)){
^
0_0_37826341_13716.cpp:121:20: error: 'dis' was not declared in this scope
g.dijkstra(dis[0],1);g.dijkstra(dis[1],n);
^
0_0_37826341_13716.cpp:124:26: error: 'struct graph' has no member named 'head'
for (int i=g.head[u];i;i=g.E[i].nxt){
^
0_0_37826341_13716.cpp:124:40: error: 'struct graph' has no member named 'E'
for (int i=g.head[u];i;i=g.E[i].nxt){
^
0_0_37826341_13716.cpp:125:25: error: 'struct graph' has no member named 'E'
int v=g.E[i].to,w=g.E[i].w;
^
0_0_37826341_13716.cpp:126:41: error: 'w' was not declared in this scope
if (dis[0][u]+dis[1][v]+w==dis[0][n]){
^
0_0_37826341_13716.cpp:134:51: error: 'printf' was not declared in this scope
printf("%d %d\n",nt.Dinic(1,n),m-dis[0][n]);
^
0_0_37826341_13716.cpp: In instantiation of 'void read(T&) [with T = int]':
0_0_37826341_13716.cpp:118:19: required from here
0_0_37826341_13716.cpp:7:24: error: 'getchar' was not declared in this scope
x=0;char c=getchar();bool f=0;
^
0_0_37826341_13716.cpp:8:21: error: 'isdigit' was not declared in this scope
while(!isdigit(c)) f=c=='-',c=getchar();
^
0_0_37826341_13716.cpp:9:20: error: 'isdigit' was not declared in this scope
while(isdigit(
|