0_0_38226443_9379\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_38226443_9379\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
^
0_0_38226443_9379\Main.java:2: 错误: 非法字符: '#'
#include <queue>
^
0_0_38226443_9379\Main.java:3: 错误: 非法字符: '#'
#include <cstring>
^
0_0_38226443_9379\Main.java:5: 错误: 需要class, interface或enum
const int inf = 1e9+5;
^
0_0_38226443_9379\Main.java:6: 错误: 需要class, interface或enum
const int maxn = 1e5+5;
^
0_0_38226443_9379\Main.java:7: 错误: 需要class, interface或enum
struct Edge {
^
0_0_38226443_9379\Main.java:9: 错误: 需要class, interface或enum
} edge[maxn];
^
0_0_38226443_9379\Main.java:10: 错误: 需要class, interface或enum
int head[maxn],tot;
^
0_0_38226443_9379\Main.java:11: 错误: 需要class, interface或enum
int pre[maxn],dist[maxn];
^
0_0_38226443_9379\Main.java:12: 错误: 需要class, interface或enum
bool vis[maxn];
^
0_0_38226443_9379\Main.java:13: 错误: 需要class, interface或enum
char ch[110][110];
^
0_0_38226443_9379\Main.java:14: 错误: 需要class, interface或enum
int x[210],y[210];
^
0_0_38226443_9379\Main.java:15: 错误: 需要class, interface或enum
int n,m;
^
0_0_38226443_9379\Main.java:16: 错误: 需要class, interface或enum
void addedge(int u,int v,int c,int cost) {
^
0_0_38226443_9379\Main.java:17: 错误: 需要class, interface或enum
edge[tot].to = v; edge[tot].c = c;
^
0_0_38226443_9379\Main.java:18: 错误: 需要class, interface或enum
edge[tot].cost = cost; edge[tot].flow = 0;
^
0_0_38226443_9379\Main.java:18: 错误: 需要class, interface或enum
edge[tot].cost = cost; edge[tot].flow = 0;
^
0_0_38226443_9379\Main.java:19: 错误: 需要class, interface或enum
edge[tot].next = head[u]; head[u] = tot++;
^
0_0_38226443_9379\Main.java:19: 错误: 需要class, interface或enum
edge[tot].next = head[u]; head[u] = tot++;
^
0_0_38226443_9379\Main.java:20: 错误: 需要class, interface或enum
edge[tot].to = u; edge[tot].c = 0;
^
0_0_38226443_9379\Main.java:20: 错误: 需要class, interface或enum
edge[tot].to = u; edge[tot].c = 0;
^
0_0_38226443_9379\Main.java:21: 错误: 需要class, interface或enum
edge[tot].cost = -cost; edge[tot].flow = 0;
^
0_0_38226443_9379\Main.java:21: 错误: 需要class, interface或enum
edge[tot].cost = -cost; edge[tot].flow = 0;
^
0_0_38226443_9379\Main.java:22: 错误: 需要class, interface或enum
edge[tot].next = head[v]; head[v] = tot++;
^
0_0_38226443_9379\Main.java:22: 错误: 需要class, interface或enum
edge[tot].next = head[v]; head[v] = tot++;
^
0_0_38226443_9379\Main.java:23: 错误: 需要class, interface或enum
}
^
0_0_38226443_9379\Main.java:26: 错误: 需要class, interface或enum
memset(dist,inf,sizeof dist);
^
0_0_38226443_9379\Main.java:27: 错误: 需要class, interface或enum
memset(vis,0,sizeof vis);
^
0_0_38226443_9379\Main.java:28: 错误: 需要class, interface或enum
memset(pre,-1,sizeof pre);
^
0_0_38226443_9379\Main.java:29: 错误: 需要class, interface或enum
dist[source] = 0;
^
0_0_38226443_9379\Main.java:30: 错误: 需要class, interface或enum
vis[source] = 1;
^
0_0_38226443_9379\Main.java:31: 错误: 需要class, interface或enum
que.push(source);
^
0_0_38226443_9379\Main.java:32: 错误: 需要class, interface或enum
while (!que.empty()) {
^
0_0_38226443_9379\Main.java:33: 错误: 需要class, interface或enum
int cur = que.front(); que.pop();
^
0_0_38226443_9379\Main.java:34: 错误: 需要class, interface或enum
vis[cur] = false;
^
0_0_38226443_9379\Main.java:35: 错误: 需要class, interface或enum
for (int i=head[cur]; i!=-1; i=edge[i].next) {
^
0_0_38226443_9379\Main.java:35: 错误: 需要class, interface或enum
for (int i=head[cur]; i!=-1; i=edge[i].next) {
^
0_0_38226443_9379\Main.java:35: 错误: 需要class, interface或enum
for (int i=head[cur]; i!=-1; i=edge[i].next) {
^
0_0_38226443_9379\Main.java:37: 错误: 需要class, interface或enum
if (edge[i].c>edge[i].flow && dist[v]>dist[cur]+edge[i].cost) {
^
0_0_38226443_9379\Main.java:39: 错误: 需要class, interface或enum
pre[v] = i;
^
0_0_38226443_9379\Main.java:40: 错误: 需要class, interface或enum
if (!vis[v]) {
^
0_0_38226443_9379\Main.java:42: 错误: 需要class, interface或enum
que.push(v);
^
0_0_38226443_9379\Main.java:43: 错误: 需要class, interface或enum
}
^
0_0_38226443_9379\Main.java:48: 错误: 需要class, interface或enum
return true;
^
0_0_38226443_9379\Main.java:49: 错误: 需要class, interface或enum
}
^
0_0_38226443_9379\Main.java:52: 错误: 需要class, interface或enum
while (spfa(source,sink)) {
^
0_0_38226443_9379\Main.java:54: 错误: 需要class, interface或enum
int i = pre[sink];
^
0_0_38226443_9379\Main.java:55: 错误: 需要class, interface或enum
while (i != -1) {
^
0_0_38226443_9379\Main.java:57: 错误: 需要class, interface或enum
i = pre[edge[i^1].to];
^
0_0_38226443_9379\Main.java:58: 错误: 需要class, interface或enum
}
^
0_0_38226443_9379\Main.java:60: 错误: 需要class, interface或enum
while (i != -1) {
^
0_0_38226443_9379\Main.java:62: 错误: 需要class, interface或enum
edge[i^1].flow -= delta;
^
0_0_38226443_9379\Main.java:63: 错误: 需要class, interface或enum
cost += edge[i].cost * delta;
^
0_0_38226443_9379\Main.java:64: 错误: 需要class, interface或enum
i = pre[edge[i^1].to];
^
0_0_38226443_9379\Main.java:65: 错误: 需要class, interface或enum
}
^
0_0_38226443_9379\Main.java:70: 错误: 需要class, interface或enum
for (int i=0; i<n; ++i)
^
0_0_38226443_9379\Main.java:70: 错误: 需要class, interface或enum
for (int i=0; i<n; ++i)
^
0_0_38226443_9379\Main.java:72: 错误: 需要class, interface或enum
int num=0;
^
0_0_38226443_9379\Main.java:73: 错误: 需要class, interface或enum
for (int i=0; i<n; ++i)
^
0_0_38226443_9379\Main.java:73: 错误: 需要class, interface或enum
for (int i=0; i<n; ++i)
^
0_0_38226443_9379\Main.java:73: 错误: 需要class, interface或enum
for (int i=0; i<n; ++i)
^
0_0_38226443_9379\Main.java:74: 错误: 需要class, interface或enum
for (int j=0; j<m; ++j)
^
0_0_38226443_9379\Main.java:74: 错误: 需要class, interface或enum
for (int j=0; j<m; ++j)
^
0_0_38226443_9379\Main.java:77: 错误: 需要class, interface或enum
x[num] = i;
^
0_0_38226443_9379\Main.java:78: 错误: 需要class, interface或enum
y[num] = j;
^
0_0_38226443_9379\Main.java:79: 错误: 需要class, interface或enum
}
^
0_0_38226443_9379\Main.java:81: 错误: 需要class, interface或enum
for (int i=0; i<n; ++i)
^
0_0_38226443_9379\Main.java:81: 错误: 需要class, interface或enum
for (int i=0; i<n; ++i)
^
0_0_38226443_9379\Main.java:81: 错误: 需要class, interface或enum
for (int i=0; i<n; ++i)
^
0_0_38226443_9379\Main.java:82: 错误: 需要class, interface或enum
for (int j=0; j<m; ++j)
^
0_0_38226443_9379\Main.java:82: 错误: 需要class, interface或enum
for (int j=0; j<m; ++j)
^
0_0_38226443_9379\Main.java:85: 错误: 需要class, interface或enum
x[num+cnt] = i;
^
0_0_38226443_9379\Main.java:86: 错误: 需要class, interface或enum
y[num+cnt] = j;
^
0_0_38226443_9379\Main.java:87: 错误: 需要class, interface或enum
}
^
0_0_38226443_9379\Main.java:89: 错误: 需要class, interface或enum
memset(head,-1,sizeof head);
^
0_0_38226443_9379\Main.java:90: 错误: 需要class, interface或enum
tot = 0;
^
0_0_38226443_9379\Main.java:91: 错误: 需要class, interface或enum
for (int i=1; i<=num; ++i)
^
0_0_38226443_9379\Main.java:91: 错误: 需要class, interface或enum
for (int i=1; i<=num; ++i)
^
0_0_38226443_9379\Main.java:91: 错误: 需要class, interface或enum
for (int i=1; i<=num; ++i)
^
0_0_38226443_9379\Main.java:93: 错误: 需要class, interface或enum
for (int i=num+1; i<=num+cnt; ++i)
^
0_0_38226443_9379\Main.java:93: 错误: 需要class, interface或enum
for (int i=num+1; i<=num+cnt; ++i)
^
0_0_38226443_9379\Main.java:93: 错误: 需要class, interface或enum
for (int i=num+1; i<=num+cnt; ++i)
^
0_0_38226443_9379\Main.java:95: 错误: 需要class, interface或enum
for (int i=1; i<=num; ++i)
^
0_0_38226443_9379\Main.java:95: 错误: 需要class,
|