0_0_29469673_25238\Main.java:1: 错误: 非法字符: '#'
#include <stdio.h>
^
0_0_29469673_25238\Main.java:1: 错误: 需要class, interface或enum
#include <stdio.h>
^
0_0_29469673_25238\Main.java:2: 错误: 非法字符: '#'
#include <string.h>
^
0_0_29469673_25238\Main.java:3: 错误: 非法字符: '#'
#include <memory.h>
^
0_0_29469673_25238\Main.java:4: 错误: 非法字符: '#'
#define min(a, b) ((a) < (b) ? (a) : (b))
^
0_0_29469673_25238\Main.java:5: 错误: 非法字符: '#'
#define REP(i, n) for(int i = 0; i < n; ++i)
^
0_0_29469673_25238\Main.java:5: 错误: 需要class, interface或enum
#define REP(i, n) for(int i = 0; i < n; ++i)
^
0_0_29469673_25238\Main.java:5: 错误: 需要class, interface或enum
#define REP(i, n) for(int i = 0; i < n; ++i)
^
0_0_29469673_25238\Main.java:7: 错误: 需要class, interface或enum
const int maxN = 305;
^
0_0_29469673_25238\Main.java:8: 错误: 需要class, interface或enum
const int oo = 0x3f3f3f3f;
^
0_0_29469673_25238\Main.java:9: 错误: 需要class, interface或enum
struct Edge{
^
0_0_29469673_25238\Main.java:11: 错误: 需要class, interface或enum
};
^
0_0_29469673_25238\Main.java:12: 错误: 需要class, interface或enum
Edge edge[maxE];
^
0_0_29469673_25238\Main.java:13: 错误: 需要class, interface或enum
int adj[maxN], l;
^
0_0_29469673_25238\Main.java:14: 错误: 需要class, interface或enum
int d[maxN], cur[maxN], a[maxN];
^
0_0_29469673_25238\Main.java:15: 错误: 需要class, interface或enum
int inq[maxN], Q[maxE], head, tail;
^
0_0_29469673_25238\Main.java:16: 错误: 需要class, interface或enum
int n, m, k, p;
^
0_0_29469673_25238\Main.java:17: 错误: 需要class, interface或enum
int cost, flow, s, t;
^
0_0_29469673_25238\Main.java:18: 错误: 需要class, interface或enum
void addedge(int u, int v, int c, int w){
^
0_0_29469673_25238\Main.java:19: 错误: 需要class, interface或enum
edge[l].v = v; edge[l].c = c; edge[l].w = w; edge[l].n = adj[u]; adj[u] = l++;
^
0_0_29469673_25238\Main.java:19: 错误: 需要class, interface或enum
edge[l].v = v; edge[l].c = c; edge[l].w = w; edge[l].n = adj[u]; adj[u] = l++;
^
0_0_29469673_25238\Main.java:19: 错误: 需要class, interface或enum
edge[l].v = v; edge[l].c = c; edge[l].w = w; edge[l].n = adj[u]; adj[u] = l++;
^
0_0_29469673_25238\Main.java:19: 错误: 需要class, interface或enum
edge[l].v = v; edge[l].c = c; edge[l].w = w; edge[l].n = adj[u]; adj[u] = l++;
^
0_0_29469673_25238\Main.java:20: 错误: 需要class, interface或enum
edge[l].v = u; edge[l].c = 0; edge[l].w = -w; edge[l].n = adj[v]; adj[v] = l++;
^
0_0_29469673_25238\Main.java:20: 错误: 需要class, interface或enum
edge[l].v = u; edge[l].c = 0; edge[l].w = -w; edge[l].n = adj[v]; adj[v] = l++;
^
0_0_29469673_25238\Main.java:20: 错误: 需要class, interface或enum
edge[l].v = u; edge[l].c = 0; edge[l].w = -w; edge[l].n = adj[v]; adj[v] = l++;
^
0_0_29469673_25238\Main.java:20: 错误: 需要class, interface或enum
edge[l].v = u; edge[l].c = 0; edge[l].w = -w; edge[l].n = adj[v]; adj[v] = l++;
^
0_0_29469673_25238\Main.java:20: 错误: 需要class, interface或enum
edge[l].v = u; edge[l].c = 0; edge[l].w = -w; edge[l].n = adj[v]; adj[v] = l++;
^
0_0_29469673_25238\Main.java:21: 错误: 需要class, interface或enum
}
^
0_0_29469673_25238\Main.java:24: 错误: 需要class, interface或enum
memset(inq, 0, sizeof inq);
^
0_0_29469673_25238\Main.java:25: 错误: 需要class, interface或enum
head = tail = 0;
^
0_0_29469673_25238\Main.java:26: 错误: 需要class, interface或enum
d[s] = 0;
^
0_0_29469673_25238\Main.java:27: 错误: 需要class, interface或enum
a[s] = oo;
^
0_0_29469673_25238\Main.java:28: 错误: 需要class, interface或enum
cur[s] = -1;
^
0_0_29469673_25238\Main.java:29: 错误: 需要class, interface或enum
Q[tail++] = s;
^
0_0_29469673_25238\Main.java:30: 错误: 需要class, interface或enum
while(head != tail){
^
0_0_29469673_25238\Main.java:32: 错误: 需要class, interface或enum
inq[u] = 0;
^
0_0_29469673_25238\Main.java:33: 错误: 需要class, interface或enum
for(int i = adj[u]; ~i; i = edge[i].n){
^
0_0_29469673_25238\Main.java:33: 错误: 需要class, interface或enum
for(int i = adj[u]; ~i; i = edge[i].n){
^
0_0_29469673_25238\Main.java:33: 错误: 需要class, interface或enum
for(int i = adj[u]; ~i; i = edge[i].n){
^
0_0_29469673_25238\Main.java:35: 错误: 需要class, interface或enum
if(!edge[i].c || d[v] <= d[u] + edge[i].w) continue;
^
0_0_29469673_25238\Main.java:36: 错误: 需要class, interface或enum
d[v] = d[u] + edge[i].w;
^
0_0_29469673_25238\Main.java:37: 错误: 需要class, interface或enum
cur[v] = i;
^
0_0_29469673_25238\Main.java:38: 错误: 需要class, interface或enum
a[v] = min(edge[i].c, a[u]);
^
0_0_29469673_25238\Main.java:39: 错误: 需要class, interface或enum
if(inq[v]) continue;
^
0_0_29469673_25238\Main.java:40: 错误: 需要class, interface或enum
inq[v] = 1;
^
0_0_29469673_25238\Main.java:41: 错误: 需要class, interface或enum
Q[tail++] = v;
^
0_0_29469673_25238\Main.java:42: 错误: 需要class, interface或enum
}
^
0_0_29469673_25238\Main.java:45: 错误: 需要class, interface或enum
flow += a[t];
^
0_0_29469673_25238\Main.java:46: 错误: 需要class, interface或enum
cost += a[t] * d[t];
^
0_0_29469673_25238\Main.java:47: 错误: 需要class, interface或enum
for(int i = cur[t]; ~i; i = cur[edge[i ^ 1].v]){
^
0_0_29469673_25238\Main.java:47: 错误: 需要class, interface或enum
for(int i = cur[t]; ~i; i = cur[edge[i ^ 1].v]){
^
0_0_29469673_25238\Main.java:47: 错误: 需要class, interface或enum
for(int i = cur[t]; ~i; i = cur[edge[i ^ 1].v]){
^
0_0_29469673_25238\Main.java:49: 错误: 需要class, interface或enum
edge[i ^ 1].c += a[t];
^
0_0_29469673_25238\Main.java:50: 错误: 需要class, interface或enum
}
^
0_0_29469673_25238\Main.java:52: 错误: 需要class, interface或enum
}
^
0_0_29469673_25238\Main.java:55: 错误: 需要class, interface或enum
while(SPFA());
^
0_0_29469673_25238\Main.java:56: 错误: 需要class, interface或enum
return cost;
^
0_0_29469673_25238\Main.java:57: 错误: 需要class, interface或enum
}
^
0_0_29469673_25238\Main.java:60: 错误: 需要class, interface或enum
while(~scanf("%d%d%d%d", &n, &m, &k, &p)){
^
0_0_29469673_25238\Main.java:62: 错误: 需要class, interface或enum
l = 0;
^
0_0_29469673_25238\Main.java:63: 错误: 需要class, interface或enum
s = 0; t = n + m + 1;
^
0_0_29469673_25238\Main.java:63: 错误: 需要class, interface或enum
s = 0; t = n + m + 1;
^
0_0_29469673_25238\Main.java:64: 错误: 需要class, interface或enum
REP(i, n){
^
0_0_29469673_25238\Main.java:66: 错误: 需要class, interface或enum
addedge(s, u, 1, 0);
^
0_0_29469673_25238\Main.java:67: 错误: 需要class, interface或enum
}
^
0_0_29469673_25238\Main.java:70: 错误: 需要class, interface或enum
}
^
0_0_29469673_25238\Main.java:73: 错误: 需要class, interface或enum
addedge(u, v, oo, w);
^
0_0_29469673_25238\Main.java:74: 错误: 需要class, interface或enum
addedge(v, u, oo, w);
^
0_0_29469673_25238\Main.java:75: 错误: 需要class, interface或enum
}
^
0_0_29469673_25238\Main.java:78: 错误: 需要class, interface或enum
addedge(v, u + m, 1, w);
^
0_0_29469673_25238\Main.java:79: 错误: 需要class, interface或enum
}
^
0_0_29469673_25238\Main.java:81: 错误: 需要class, interface或enum
}
^
0_0_29469673_25238\Main.java:85: 错误: 需要class, interface或enum
return 0;
^
0_0_29469673_25238\Main.java:86: 错误: 需要class, interface或enum
}
^
75 个错误
|