0_0_28006162_10463\Main.java:1: 错误: 非法字符: '#'
#define mm(a) memset(a,0,sizeof(a));
^
0_0_28006162_10463\Main.java:1: 错误: 需要class, interface或enum
#define mm(a) memset(a,0,sizeof(a));
^
0_0_28006162_10463\Main.java:2: 错误: 非法字符: '#'
#define max(x,y) (x)>(y)?(x):(y)
^
0_0_28006162_10463\Main.java:2: 错误: 需要class, interface或enum
#define max(x,y) (x)>(y)?(x):(y)
^
0_0_28006162_10463\Main.java:3: 错误: 非法字符: '#'
#define min(x,y) (x)<(y)?(x):(y)
^
0_0_28006162_10463\Main.java:4: 错误: 非法字符: '#'
#define Fopen freopen("in.txt","r",stdin); freopen("out.txt","w",stdout);
^
0_0_28006162_10463\Main.java:4: 错误: 需要class, interface或enum
#define Fopen freopen("in.txt","r",stdin); freopen("out.txt","w",stdout);
^
0_0_28006162_10463\Main.java:5: 错误: 非法字符: '#'
#define rep(i,a,b) for(int i=(a);i<=(b);i++)
^
0_0_28006162_10463\Main.java:5: 错误: 需要class, interface或enum
#define rep(i,a,b) for(int i=(a);i<=(b);i++)
^
0_0_28006162_10463\Main.java:5: 错误: 需要class, interface或enum
#define rep(i,a,b) for(int i=(a);i<=(b);i++)
^
0_0_28006162_10463\Main.java:5: 错误: 需要class, interface或enum
#define rep(i,a,b) for(int i=(a);i<=(b);i++)
^
0_0_28006162_10463\Main.java:6: 错误: 非法字符: '#'
#define per(i,b,a) for(int i=(b);i>=(a);i--)
^
0_0_28006162_10463\Main.java:6: 错误: 需要class, interface或enum
#define per(i,b,a) for(int i=(b);i>=(a);i--)
^
0_0_28006162_10463\Main.java:6: 错误: 需要class, interface或enum
#define per(i,b,a) for(int i=(b);i>=(a);i--)
^
0_0_28006162_10463\Main.java:7: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_28006162_10463\Main.java:9: 错误: 需要class, interface或enum
using namespace std;
^
0_0_28006162_10463\Main.java:10: 错误: 需要class, interface或enum
const int INF=0x3f3f3f3f;
^
0_0_28006162_10463\Main.java:11: 错误: 需要class, interface或enum
const int MAXN=20005;//vertex
^
0_0_28006162_10463\Main.java:12: 错误: 需要class, interface或enum
const int MAXM=20005;//edge
^
0_0_28006162_10463\Main.java:14: 错误: 需要class, interface或enum
struct Edge
^
0_0_28006162_10463\Main.java:17: 错误: 需要class, interface或enum
int c;//容量
^
0_0_28006162_10463\Main.java:18: 错误: 需要class, interface或enum
int n;//指向下一条从同一个弧头出发的弧
^
0_0_28006162_10463\Main.java:19: 错误: 需要class, interface或enum
} edge[MAXM];//边组
^
0_0_28006162_10463\Main.java:22: 错误: 需要class, interface或enum
int adj[MAXN], cntE;//前向星的表头
^
0_0_28006162_10463\Main.java:23: 错误: 需要class, interface或enum
int Q[MAXM], head, tail;//队列
^
0_0_28006162_10463\Main.java:24: 错误: 需要class, interface或enum
int d[MAXN], cur[MAXN], pre[MAXN], num[MAXN];
^
0_0_28006162_10463\Main.java:25: 错误: 需要class, interface或enum
int source, sink, nv;//sourse:源点,sink:汇点,nv:编号修改的上限
^
0_0_28006162_10463\Main.java:28: 错误: 需要class, interface或enum
void add(int u, int v, int c) //添加边
^
0_0_28006162_10463\Main.java:32: 错误: 需要class, interface或enum
edge[cntE].c = c;//正向弧的容量为c
^
0_0_28006162_10463\Main.java:33: 错误: 需要class, interface或enum
edge[cntE].n = adj[u];
^
0_0_28006162_10463\Main.java:34: 错误: 需要class, interface或enum
adj[u] = cntE++;
^
0_0_28006162_10463\Main.java:37: 错误: 需要class, interface或enum
edge[cntE].v = u;
^
0_0_28006162_10463\Main.java:38: 错误: 需要class, interface或enum
edge[cntE].c = 0;//反向弧的容量为0
^
0_0_28006162_10463\Main.java:39: 错误: 需要class, interface或enum
edge[cntE].n = adj[v];
^
0_0_28006162_10463\Main.java:40: 错误: 需要class, interface或enum
adj[v] = cntE++;
^
0_0_28006162_10463\Main.java:41: 错误: 需要class, interface或enum
}
^
0_0_28006162_10463\Main.java:46: 错误: 需要class, interface或enum
memset(d,-1,sizeof(d));//没标过号则为-1
^
0_0_28006162_10463\Main.java:48: 错误: 需要class, interface或enum
d[sink] = 0;//汇点默认为标过号
^
0_0_28006162_10463\Main.java:49: 错误: 需要class, interface或enum
num[0] = 1;
^
0_0_28006162_10463\Main.java:50: 错误: 需要class, interface或enum
head = tail = 0;
^
0_0_28006162_10463\Main.java:51: 错误: 需要class, interface或enum
Q[tail++] = sink;
^
0_0_28006162_10463\Main.java:53: 错误: 需要class, interface或enum
while (head != tail)
^
0_0_28006162_10463\Main.java:56: 错误: 需要class, interface或enum
for (int i = adj[u]; ~i; i = edge[i].n)
^
0_0_28006162_10463\Main.java:56: 错误: 需要class, interface或enum
for (int i = adj[u]; ~i; i = edge[i].n)
^
0_0_28006162_10463\Main.java:56: 错误: 需要class, interface或enum
for (int i = adj[u]; ~i; i = edge[i].n)
^
0_0_28006162_10463\Main.java:59: 错误: 需要class, interface或enum
if (~d[v]) continue;//已经标过号
^
0_0_28006162_10463\Main.java:60: 错误: 需要class, interface或enum
d[v] = d[u] + 1;//标号
^
0_0_28006162_10463\Main.java:61: 错误: 需要class, interface或enum
Q[tail++] = v;
^
0_0_28006162_10463\Main.java:62: 错误: 需要class, interface或enum
num[d[v]]++;
^
0_0_28006162_10463\Main.java:63: 错误: 需要class, interface或enum
}
^
0_0_28006162_10463\Main.java:71: 错误: 需要class, interface或enum
rev_bfs ();//只用标号一次就够了,重标号在ISAP主函数中进行就行了
^
0_0_28006162_10463\Main.java:72: 错误: 需要class, interface或enum
int flow = 0, u = pre[source] = source, i;
^
0_0_28006162_10463\Main.java:74: 错误: 需要class, interface或enum
while (d[sink] < nv) //最长也就是一条链,其中最大的标号只会是nv - 1,如果大于等于nv了说明中间已经断层了。
^
0_0_28006162_10463\Main.java:79: 错误: 需要class, interface或enum
for (i = source; i != sink; i = edge[cur[i]].v)
^
0_0_28006162_10463\Main.java:79: 错误: 需要class, interface或enum
for (i = source; i != sink; i = edge[cur[i]].v)
^
0_0_28006162_10463\Main.java:79: 错误: 需要class, interface或enum
for (i = source; i != sink; i = edge[cur[i]].v)
^
0_0_28006162_10463\Main.java:84: 错误: 需要class, interface或enum
neck = i;//记录回退点,目的是为了不用再回到起点重新找
^
0_0_28006162_10463\Main.java:85: 错误: 需要class, interface或enum
}
^
0_0_28006162_10463\Main.java:87: 错误: 需要class, interface或enum
for (i = source; i != sink; i = edge[cur[i]].v) //修改流量
^
0_0_28006162_10463\Main.java:87: 错误: 需要class, interface或enum
for (i = source; i != sink; i = edge[cur[i]].v) //修改流量
^
0_0_28006162_10463\Main.java:90: 错误: 需要class, interface或enum
edge[cur[i] ^ 1].c += f;
^
0_0_28006162_10463\Main.java:91: 错误: 需要class, interface或enum
}
^
0_0_28006162_10463\Main.java:93: 错误: 需要class, interface或enum
u = neck;//回退
^
0_0_28006162_10463\Main.java:94: 错误: 需要class, interface或enum
}
^
0_0_28006162_10463\Main.java:95: 错误: 需要class, interface或enum
for (i = cur[u]; ~i; i = edge[i].n) if (d[edge[i].v] + 1 == d[u] && edge[i].c) break;
^
0_0_28006162_10463\Main.java:95: 错误: 需要class, interface或enum
for (i = cur[u]; ~i; i = edge[i].n) if (d[edge[i].v] + 1 == d[u] && edge[i].c) break;
^
0_0_28006162_10463\Main.java:96: 错误: 需要class, interface或enum
if (~i) //如果存在可行增广路,更新
^
0_0_28006162_10463\Main.java:99: 错误: 需要class, interface或enum
pre[edge[i].v] = u;
^
0_0_28006162_10463\Main.java:100: 错误: 需要class, interface或enum
u = edge[i].v;
^
0_0_28006162_10463\Main.java:101: 错误: 需要class, interface或enum
}
^
0_0_28006162_10463\Main.java:105: 错误: 需要class, interface或enum
int mind = nv;
^
0_0_28006162_10463\Main.java:106: 错误: 需要class, interface或enum
for (i = adj[u]; ~i; i = edge[i].n)
^
0_0_28006162_10463\Main.java:106: 错误: 需要class, interface或enum
for (i = adj[u]; ~i; i = edge[i].n)
^
0_0_28006162_10463\Main.java:106: 错误: 需要class, interface或enum
for (i = adj[u]; ~i; i = edge[i].n)
^
0_0_28006162_10463\Main.java:111: 错误: 需要class, interface或enum
mind = d[edge[i].v];
^
0_0_28006162_10463\Main.java:112: 错误: 需要class, interface或enum
}
^
0_0_28006162_10463\Main.java:115: 错误: 需要class, interface或enum
num[d[u]]++;
^
0_0_28006162_10463\Main.java:116: 错误: 需要class, interface或enum
u = pre[u];//回退
^
0_0_28006162_10463\Main.java:117: 错误: 需要class, interface或enum
}
^
0_0_28006162_10463\Main.java:121: 错误: 需要class, interface或enum
}
^
0_0_28006162_10463\Main.java:126: 错误: 需要class, interf
|