0_0_15234639_27129\Main.java:1: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_15234639_27129\Main.java:1: 错误: 需要class, interface或enum
#include <cstdio>
^
0_0_15234639_27129\Main.java:2: 错误: 非法字符: '#'
#include <cmath>
^
0_0_15234639_27129\Main.java:3: 错误: 非法字符: '#'
#include <cstring>
^
0_0_15234639_27129\Main.java:4: 错误: 非法字符: '#'
#include <iostream>
^
0_0_15234639_27129\Main.java:5: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_15234639_27129\Main.java:8: 错误: 需要class, interface或enum
const int N = 460;
^
0_0_15234639_27129\Main.java:9: 错误: 需要class, interface或enum
const int M = 6 * N + N * N * 2;
^
0_0_15234639_27129\Main.java:10: 错误: 需要class, interface或enum
const int INF = 0x3f3f3f3f;
^
0_0_15234639_27129\Main.java:12: 错误: 需要class, interface或enum
int n, m;
^
0_0_15234639_27129\Main.java:13: 错误: 需要class, interface或enum
int x[N], y[N], b[N], p[N], need[10][N];
^
0_0_15234639_27129\Main.java:14: 错误: 需要class, interface或enum
double d[N][N];
^
0_0_15234639_27129\Main.java:15: 错误: 需要class, interface或enum
int en, S, T, NV, head[N], from[M], to[M], cost[M], flow[M], next[M];
^
0_0_15234639_27129\Main.java:16: 错误: 需要class, interface或enum
int top, sta[N], dis[N], id[N];
^
0_0_15234639_27129\Main.java:17: 错误: 需要class, interface或enum
bool vis[N];
^
0_0_15234639_27129\Main.java:19: 错误: 需要class, interface或enum
inline void addEdge(int u, int v, int c) {
^
0_0_15234639_27129\Main.java:21: 错误: 需要class, interface或enum
from[en] = v, to[en] = u, cost[en] = -c, next[en] = head[v], head[v] = en++;
^
0_0_15234639_27129\Main.java:22: 错误: 需要class, interface或enum
}
^
0_0_15234639_27129\Main.java:25: 错误: 需要class, interface或enum
for (int i = 0; i < NV; i++) dis[i] = INF, vis[i] = false;
^
0_0_15234639_27129\Main.java:25: 错误: 需要class, interface或enum
for (int i = 0; i < NV; i++) dis[i] = INF, vis[i] = false;
^
0_0_15234639_27129\Main.java:26: 错误: 需要class, interface或enum
dis[S] = 0;
^
0_0_15234639_27129\Main.java:28: 错误: 需要class, interface或enum
sta[top = 1] = S;
^
0_0_15234639_27129\Main.java:29: 错误: 需要class, interface或enum
while (top) {
^
0_0_15234639_27129\Main.java:31: 错误: 需要class, interface或enum
vis[u] = false;
^
0_0_15234639_27129\Main.java:32: 错误: 需要class, interface或enum
for (int i = head[u]; i != -1; i = next[i]) if (flow[i] > 0) {
^
0_0_15234639_27129\Main.java:32: 错误: 需要class, interface或enum
for (int i = head[u]; i != -1; i = next[i]) if (flow[i] > 0) {
^
0_0_15234639_27129\Main.java:32: 错误: 需要class, interface或enum
for (int i = head[u]; i != -1; i = next[i]) if (flow[i] > 0) {
^
0_0_15234639_27129\Main.java:34: 错误: 需要class, interface或enum
if (dis[v] > dis[u] + cost[i]) {
^
0_0_15234639_27129\Main.java:36: 错误: 需要class, interface或enum
id[v] = i;
^
0_0_15234639_27129\Main.java:37: 错误: 需要class, interface或enum
if (!vis[v]) sta[++top] = v, vis[v] = true;
^
0_0_15234639_27129\Main.java:38: 错误: 需要class, interface或enum
}
^
0_0_15234639_27129\Main.java:42: 错误: 需要class, interface或enum
}
^
0_0_15234639_27129\Main.java:46: 错误: 需要class, interface或enum
while (SPFA()) {
^
0_0_15234639_27129\Main.java:48: 错误: 需要class, interface或enum
for (v = T; v != S; v = u) {
^
0_0_15234639_27129\Main.java:48: 错误: 需要class, interface或enum
for (v = T; v != S; v = u) {
^
0_0_15234639_27129\Main.java:48: 错误: 需要class, interface或enum
for (v = T; v != S; v = u) {
^
0_0_15234639_27129\Main.java:50: 错误: 需要class, interface或enum
aug = min(aug, flow[id[v]]);
^
0_0_15234639_27129\Main.java:51: 错误: 需要class, interface或enum
}
^
0_0_15234639_27129\Main.java:52: 错误: 需要class, interface或enum
for (v = T; v != S; v = u) {
^
0_0_15234639_27129\Main.java:52: 错误: 需要class, interface或enum
for (v = T; v != S; v = u) {
^
0_0_15234639_27129\Main.java:54: 错误: 需要class, interface或enum
flow[id[v]] -= aug;
^
0_0_15234639_27129\Main.java:55: 错误: 需要class, interface或enum
flow[id[v] ^ 1] += aug;
^
0_0_15234639_27129\Main.java:56: 错误: 需要class, interface或enum
}
^
0_0_15234639_27129\Main.java:58: 错误: 需要class, interface或enum
}
^
0_0_15234639_27129\Main.java:60: 错误: 需要class, interface或enum
}
^
0_0_15234639_27129\Main.java:63: 错误: 需要class, interface或enum
for (int i = 1, en = 0; i < n; i++) {
^
0_0_15234639_27129\Main.java:63: 错误: 需要class, interface或enum
for (int i = 1, en = 0; i < n; i++) {
^
0_0_15234639_27129\Main.java:65: 错误: 需要class, interface或enum
flow[en++] = need[k][i], flow[en++] = 0;
^
0_0_15234639_27129\Main.java:66: 错误: 需要class, interface或enum
flow[en++] = need[k][i], flow[en++] = 0;
^
0_0_15234639_27129\Main.java:67: 错误: 需要class, interface或enum
flow[en++] = need[k][i], flow[en++] = 0;
^
0_0_15234639_27129\Main.java:68: 错误: 需要class, interface或enum
for (int j = 1; j < n; j++) if (b[i] + p[i] + d[i][j] <= b[j])
^
0_0_15234639_27129\Main.java:68: 错误: 需要class, interface或enum
for (int j = 1; j < n; j++) if (b[i] + p[i] + d[i][j] <= b[j])
^
0_0_15234639_27129\Main.java:68: 错误: 需要class, interface或enum
for (int j = 1; j < n; j++) if (b[i] + p[i] + d[i][j] <= b[j])
^
0_0_15234639_27129\Main.java:70: 错误: 需要class, interface或enum
}
^
0_0_15234639_27129\Main.java:72: 错误: 需要class, interface或enum
}
^
0_0_15234639_27129\Main.java:76: 错误: 需要class, interface或enum
scanf("%d", &cas);
^
0_0_15234639_27129\Main.java:77: 错误: 需要class, interface或enum
while (cas--) {
^
0_0_15234639_27129\Main.java:79: 错误: 需要class, interface或enum
scanf("%d%d", &x[0], &y[0]);
^
0_0_15234639_27129\Main.java:80: 错误: 需要class, interface或enum
for (int i = 1; i < n; i++) {
^
0_0_15234639_27129\Main.java:80: 错误: 需要class, interface或enum
for (int i = 1; i < n; i++) {
^
0_0_15234639_27129\Main.java:80: 错误: 需要class, interface或enum
for (int i = 1; i < n; i++) {
^
0_0_15234639_27129\Main.java:82: 错误: 需要class, interface或enum
for (int j = 0; j < m; j++) scanf("%d", &need[j][i]);
^
0_0_15234639_27129\Main.java:82: 错误: 需要class, interface或enum
for (int j = 0; j < m; j++) scanf("%d", &need[j][i]);
^
0_0_15234639_27129\Main.java:82: 错误: 需要class, interface或enum
for (int j = 0; j < m; j++) scanf("%d", &need[j][i]);
^
0_0_15234639_27129\Main.java:83: 错误: 需要class, interface或enum
}
^
0_0_15234639_27129\Main.java:85: 错误: 非法字符: '#'
#define sqr(x) ((x) * (x))
^
0_0_15234639_27129\Main.java:86: 错误: 需要class, interface或enum
for (int i = 0; i < n; i++)
^
0_0_15234639_27129\Main.java:86: 错误: 需要class, interface或enum
for (int i = 0; i < n; i++)
^
0_0_15234639_27129\Main.java:87: 错误: 需要class, interface或enum
for (int j = i + 1; j < n; j++) d[i][j] = d[j][i] = sqrt(sqr(x[i] - x[j]) + sqr(y[i] - y[j]));
^
0_0_15234639_27129\Main.java:87: 错误: 需要class, interface或enum
for (int j = i + 1; j < n; j++) d[i][j] = d[j][i] = sqrt(sqr(x[i] - x[j]) + sqr(y[i] - y[j]));
^
0_0_15234639_27129\Main.java:88: 错误: 非法字符: '#'
#undef sqr
^
0_0_15234639_27129\Main.java:88: 错误: 需要class, interface或enum
#undef sqr
^
0_0_15234639_27129\Main.java:91: 错误: 需要class, interface或enum
memset(head, -1, sizeof(head));
^
0_0_15234639_27129\Main.java:92: 错误: 需要class, interface或enum
for (int i = 1; i < n; i++) {
^
0_0_15234639_27129\Main.java:92: 错误: 需要class, interface或enum
for (int i = 1; i < n; i++) {
^
0_0_15234639_27129\Main.java:92: 错误: 需要class, interface或enum
for (int i = 1; i < n; i++) {
^
0_0_15234639_27129\Main.java:94: 错误: 需要class, interface或enum
addEdge(S, i + n, 0);
^
0_0_15234639_27129\Main.java:95: 错误: 需要class, interface或enum
addEdge(i, i + 2 * n, 0);
^
0_0_15234639_27129\Main.java:96: 错误: 需要class, interface或enum
addEdge(i + 2 * n, T, 0);
^
0_0_15234639_27129\Main.java:97: 错误: 需要class, interface或enum
for (int j = 1; j < n; j++) if (b[i] + p[i] + d[i][j] <= b[j])
^
0_0_15234639_27129\Main.java:97: 错误: 需要class, interface或enum
|