0_0_29456653_2057\Main.java:1: 错误: 非法字符: '#'
#include<iostream>
^
0_0_29456653_2057\Main.java:1: 错误: 需要class, interface或enum
#include<iostream>
^
0_0_29456653_2057\Main.java:2: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_29456653_2057\Main.java:3: 错误: 非法字符: '#'
#include<cstring>
^
0_0_29456653_2057\Main.java:4: 错误: 非法字符: '#'
#include<queue>
^
0_0_29456653_2057\Main.java:8: 错误: 需要class, interface或enum
const int VM=101000;
^
0_0_29456653_2057\Main.java:9: 错误: 需要class, interface或enum
const int EM=500100;
^
0_0_29456653_2057\Main.java:10: 错误: 需要class, interface或enum
const int INF=0x3f3f3f3f;
^
0_0_29456653_2057\Main.java:12: 错误: 需要class, interface或enum
struct Edge{
^
0_0_29456653_2057\Main.java:14: 错误: 需要class, interface或enum
int cap;
^
0_0_29456653_2057\Main.java:15: 错误: 需要class, interface或enum
}edge[EM<<1];
^
0_0_29456653_2057\Main.java:17: 错误: 需要class, interface或enum
int n,m,G,S,cnt,head[VM],src,des,map1[110][110],map2[110][110];
^
0_0_29456653_2057\Main.java:18: 错误: 需要class, interface或enum
int dep[VM],gap[VM],cur[VM],aug[VM],pre[VM];
^
0_0_29456653_2057\Main.java:20: 错误: 需要class, interface或enum
void addedge(int cu,int cv,int cw){
^
0_0_29456653_2057\Main.java:21: 错误: 需要class, interface或enum
edge[cnt].to=cv; edge[cnt].cap=cw; edge[cnt].nxt=head[cu];
^
0_0_29456653_2057\Main.java:21: 错误: 需要class, interface或enum
edge[cnt].to=cv; edge[cnt].cap=cw; edge[cnt].nxt=head[cu];
^
0_0_29456653_2057\Main.java:22: 错误: 需要class, interface或enum
head[cu]=cnt++;
^
0_0_29456653_2057\Main.java:23: 错误: 需要class, interface或enum
edge[cnt].to=cu; edge[cnt].cap=0; edge[cnt].nxt=head[cv];
^
0_0_29456653_2057\Main.java:23: 错误: 需要class, interface或enum
edge[cnt].to=cu; edge[cnt].cap=0; edge[cnt].nxt=head[cv];
^
0_0_29456653_2057\Main.java:23: 错误: 需要class, interface或enum
edge[cnt].to=cu; edge[cnt].cap=0; edge[cnt].nxt=head[cv];
^
0_0_29456653_2057\Main.java:24: 错误: 需要class, interface或enum
head[cv]=cnt++;
^
0_0_29456653_2057\Main.java:25: 错误: 需要class, interface或enum
}
^
0_0_29456653_2057\Main.java:29: 错误: 需要class, interface或enum
int id,mindep;
^
0_0_29456653_2057\Main.java:30: 错误: 需要class, interface或enum
aug[src]=INF;
^
0_0_29456653_2057\Main.java:31: 错误: 需要class, interface或enum
pre[src]=-1;
^
0_0_29456653_2057\Main.java:32: 错误: 需要class, interface或enum
memset(dep,0,sizeof(dep));
^
0_0_29456653_2057\Main.java:33: 错误: 需要class, interface或enum
memset(gap,0,sizeof(gap));
^
0_0_29456653_2057\Main.java:34: 错误: 需要class, interface或enum
gap[0]=n;
^
0_0_29456653_2057\Main.java:35: 错误: 需要class, interface或enum
for(int i=0;i<=n;i++)
^
0_0_29456653_2057\Main.java:35: 错误: 需要class, interface或enum
for(int i=0;i<=n;i++)
^
0_0_29456653_2057\Main.java:35: 错误: 需要class, interface或enum
for(int i=0;i<=n;i++)
^
0_0_29456653_2057\Main.java:37: 错误: 需要class, interface或enum
while(dep[src]<n){
^
0_0_29456653_2057\Main.java:39: 错误: 需要class, interface或enum
if(u==des){
^
0_0_29456653_2057\Main.java:41: 错误: 需要class, interface或enum
for(v=pre[des];v!=-1;v=pre[v]){ // 路径回溯更新残留网络
^
0_0_29456653_2057\Main.java:41: 错误: 需要class, interface或enum
for(v=pre[des];v!=-1;v=pre[v]){ // 路径回溯更新残留网络
^
0_0_29456653_2057\Main.java:41: 错误: 需要class, interface或enum
for(v=pre[des];v!=-1;v=pre[v]){ // 路径回溯更新残留网络
^
0_0_29456653_2057\Main.java:43: 错误: 需要class, interface或enum
edge[id].cap-=aug[des];
^
0_0_29456653_2057\Main.java:44: 错误: 需要class, interface或enum
edge[id^1].cap+=aug[des];
^
0_0_29456653_2057\Main.java:45: 错误: 需要class, interface或enum
aug[v]-=aug[des]; // 修改可增广量,以后会用到
^
0_0_29456653_2057\Main.java:46: 错误: 需要class, interface或enum
if(edge[id].cap==0) // 不回退到源点,仅回退到容量为0的弧的弧尾
^
0_0_29456653_2057\Main.java:48: 错误: 需要class, interface或enum
}
^
0_0_29456653_2057\Main.java:50: 错误: 需要class, interface或enum
for(int i=cur[u];i!=-1;i=edge[i].nxt){
^
0_0_29456653_2057\Main.java:50: 错误: 需要class, interface或enum
for(int i=cur[u];i!=-1;i=edge[i].nxt){
^
0_0_29456653_2057\Main.java:52: 错误: 需要class, interface或enum
if(edge[i].cap>0 && dep[u]==dep[v]+1){ // 找到允许弧
^
0_0_29456653_2057\Main.java:54: 错误: 需要class, interface或enum
pre[v]=u;
^
0_0_29456653_2057\Main.java:55: 错误: 需要class, interface或enum
cur[u]=i;
^
0_0_29456653_2057\Main.java:56: 错误: 需要class, interface或enum
aug[v]=min(aug[u],edge[i].cap);
^
0_0_29456653_2057\Main.java:57: 错误: 需要class, interface或enum
u=v;
^
0_0_29456653_2057\Main.java:58: 错误: 需要class, interface或enum
break;
^
0_0_29456653_2057\Main.java:59: 错误: 需要class, interface或enum
}
^
0_0_29456653_2057\Main.java:64: 错误: 需要class, interface或enum
mindep=n;
^
0_0_29456653_2057\Main.java:65: 错误: 需要class, interface或enum
cur[u]=head[u];
^
0_0_29456653_2057\Main.java:66: 错误: 需要class, interface或enum
for(int i=head[u];i!=-1;i=edge[i].nxt){
^
0_0_29456653_2057\Main.java:66: 错误: 需要class, interface或enum
for(int i=head[u];i!=-1;i=edge[i].nxt){
^
0_0_29456653_2057\Main.java:66: 错误: 需要class, interface或enum
for(int i=head[u];i!=-1;i=edge[i].nxt){
^
0_0_29456653_2057\Main.java:68: 错误: 需要class, interface或enum
if(edge[i].cap>0 && dep[v]<mindep){
^
0_0_29456653_2057\Main.java:70: 错误: 需要class, interface或enum
cur[u]=i; // 修改标号的同时修改当前弧
^
0_0_29456653_2057\Main.java:71: 错误: 需要class, interface或enum
}
^
0_0_29456653_2057\Main.java:74: 错误: 需要class, interface或enum
gap[dep[u]]++;
^
0_0_29456653_2057\Main.java:75: 错误: 需要class, interface或enum
if(u!=src) // 回溯继续寻找允许弧
^
0_0_29456653_2057\Main.java:77: 错误: 需要class, interface或enum
}
^
0_0_29456653_2057\Main.java:80: 错误: 需要class, interface或enum
}
^
0_0_29456653_2057\Main.java:87: 错误: 需要class, interface或enum
scanf("%d",&t);
^
0_0_29456653_2057\Main.java:88: 错误: 需要class, interface或enum
while(t--){
^
0_0_29456653_2057\Main.java:90: 错误: 需要class, interface或enum
cnt=0;
^
0_0_29456653_2057\Main.java:91: 错误: 需要class, interface或enum
memset(head,-1,sizeof(head));
^
0_0_29456653_2057\Main.java:92: 错误: 需要class, interface或enum
src=0; des=n*m*2+1;
^
0_0_29456653_2057\Main.java:92: 错误: 需要class, interface或enum
src=0; des=n*m*2+1;
^
0_0_29456653_2057\Main.java:93: 错误: 需要class, interface或enum
int sum=0;
^
0_0_29456653_2057\Main.java:94: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++)
^
0_0_29456653_2057\Main.java:94: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++)
^
0_0_29456653_2057\Main.java:94: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++)
^
0_0_29456653_2057\Main.java:95: 错误: 需要class, interface或enum
for(int j=1;j<=m;j++){
^
0_0_29456653_2057\Main.java:95: 错误: 需要class, interface或enum
for(int j=1;j<=m;j++){
^
0_0_29456653_2057\Main.java:97: 错误: 需要class, interface或enum
sum+=map1[i][j];
^
0_0_29456653_2057\Main.java:98: 错误: 需要class, interface或enum
}
^
0_0_29456653_2057\Main.java:99: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++)
^
0_0_29456653_2057\Main.java:99: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++)
^
0_0_29456653_2057\Main.java:100: 错误: 需要class, interface或enum
for(int j=1;j<=m;j++){
^
0_0_29456653_2057\Main.java:100: 错误: 需要class, interface或enum
for(int j=1;j<=m;j++){
^
0_0_29456653_2057\Main.java:102: 错误: 需要class, interface或enum
sum+=map2[i][j];
^
0_0_29456653_2057\Main.java:103: 错误: 需要class, interface或enum
}
^
0_0_29456653_2057\Main.java:105: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++){
^
0_0_29456653_2057\Main.java:105: 错
|