0_0_19032310_6130\Main.java:1: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_19032310_6130\Main.java:1: 错误: 需要class, interface或enum
#include <cstdio>
^
0_0_19032310_6130\Main.java:2: 错误: 非法字符: '#'
#include <cstdlib>
^
0_0_19032310_6130\Main.java:3: 错误: 非法字符: '#'
#include <cstring>
^
0_0_19032310_6130\Main.java:4: 错误: 非法字符: '#'
#include <cassert>
^
0_0_19032310_6130\Main.java:5: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_19032310_6130\Main.java:6: 错误: 非法字符: '#'
#include <iostream>
^
0_0_19032310_6130\Main.java:7: 错误: 非法字符: '#'
#include <queue>
^
0_0_19032310_6130\Main.java:9: 错误: 非法字符: '#'
#define N 400020
^
0_0_19032310_6130\Main.java:10: 错误: 非法字符: '#'
#define M 400020
^
0_0_19032310_6130\Main.java:11: 错误: 非法字符: '#'
#define LOGM 20
^
0_0_19032310_6130\Main.java:12: 错误: 非法字符: '#'
#define LL long long
^
0_0_19032310_6130\Main.java:13: 错误: 非法字符: '#'
#define inf (1LL<<61)
^
0_0_19032310_6130\Main.java:17: 错误: 需要class, interface或enum
namespace pheap {
^
0_0_19032310_6130\Main.java:20: 错误: 需要class, interface或enum
LL val;
^
0_0_19032310_6130\Main.java:21: 错误: 需要class, interface或enum
} node[M*LOGM];
^
0_0_19032310_6130\Main.java:22: 错误: 需要class, interface或enum
int LOG[M];
^
0_0_19032310_6130\Main.java:23: 错误: 需要class, interface或enum
int root[M], size[M*LOGM], top;
^
0_0_19032310_6130\Main.java:24: 错误: 需要class, interface或enum
int add() {
^
0_0_19032310_6130\Main.java:26: 错误: 需要class, interface或enum
node[top].next = node[top].son[0] = node[top].son[1] = 0;
^
0_0_19032310_6130\Main.java:27: 错误: 需要class, interface或enum
node[top].val = inf;
^
0_0_19032310_6130\Main.java:28: 错误: 需要class, interface或enum
return top;
^
0_0_19032310_6130\Main.java:29: 错误: 需要class, interface或enum
}
^
0_0_19032310_6130\Main.java:30: 错误: 需要class, interface或enum
int copy(int x) { int t = add(); node[t] = node[x]; return t; }
^
0_0_19032310_6130\Main.java:30: 错误: 需要class, interface或enum
int copy(int x) { int t = add(); node[t] = node[x]; return t; }
^
0_0_19032310_6130\Main.java:30: 错误: 需要class, interface或enum
int copy(int x) { int t = add(); node[t] = node[x]; return t; }
^
0_0_19032310_6130\Main.java:32: 错误: 需要class, interface或enum
top = -1; add();
^
0_0_19032310_6130\Main.java:33: 错误: 需要class, interface或enum
for (int i=2;i<M;i++) LOG[i] = LOG[i>>1] + 1;
^
0_0_19032310_6130\Main.java:33: 错误: 需要class, interface或enum
for (int i=2;i<M;i++) LOG[i] = LOG[i>>1] + 1;
^
0_0_19032310_6130\Main.java:33: 错误: 需要class, interface或enum
for (int i=2;i<M;i++) LOG[i] = LOG[i>>1] + 1;
^
0_0_19032310_6130\Main.java:34: 错误: 需要class, interface或enum
}
^
0_0_19032310_6130\Main.java:38: 错误: 需要class, interface或enum
swap(next, node[x].next);
^
0_0_19032310_6130\Main.java:39: 错误: 需要class, interface或enum
}
^
0_0_19032310_6130\Main.java:43: 错误: 需要class, interface或enum
root[x] = copy(root[x]);
^
0_0_19032310_6130\Main.java:44: 错误: 需要class, interface或enum
size[root[x]] = sz; x = root[x];
^
0_0_19032310_6130\Main.java:44: 错误: 需要class, interface或enum
size[root[x]] = sz; x = root[x];
^
0_0_19032310_6130\Main.java:45: 错误: 需要class, interface或enum
upd(x, next, val);
^
0_0_19032310_6130\Main.java:46: 错误: 需要class, interface或enum
for (int i=LOG[sz]-1;i>=0;i--) {
^
0_0_19032310_6130\Main.java:46: 错误: 需要class, interface或enum
for (int i=LOG[sz]-1;i>=0;i--) {
^
0_0_19032310_6130\Main.java:46: 错误: 需要class, interface或enum
for (int i=LOG[sz]-1;i>=0;i--) {
^
0_0_19032310_6130\Main.java:48: 错误: 需要class, interface或enum
node[x].son[ind] = copy(node[x].son[ind]);
^
0_0_19032310_6130\Main.java:49: 错误: 需要class, interface或enum
x = node[x].son[ind];
^
0_0_19032310_6130\Main.java:50: 错误: 需要class, interface或enum
upd(x, next, val);
^
0_0_19032310_6130\Main.java:51: 错误: 需要class, interface或enum
}
^
0_0_19032310_6130\Main.java:55: 错误: 需要class, interface或enum
namespace kthsp {
^
0_0_19032310_6130\Main.java:57: 错误: 需要class, interface或enum
struct EDGE {
^
0_0_19032310_6130\Main.java:59: 错误: 需要class, interface或enum
} edge[2][M];
^
0_0_19032310_6130\Main.java:60: 错误: 需要class, interface或enum
struct W {
^
0_0_19032310_6130\Main.java:62: 错误: 需要class, interface或enum
} e[M];
^
0_0_19032310_6130\Main.java:63: 错误: 需要class, interface或enum
bool has_init = 0;
^
0_0_19032310_6130\Main.java:64: 错误: 需要class, interface或enum
int n, m, top[2], gh[2][N], v[N];
^
0_0_19032310_6130\Main.java:65: 错误: 需要class, interface或enum
LL dist[N];
^
0_0_19032310_6130\Main.java:66: 错误: 需要class, interface或enum
void init(int n1) {
^
0_0_19032310_6130\Main.java:68: 错误: 需要class, interface或enum
n = n1; m = 0;
^
0_0_19032310_6130\Main.java:68: 错误: 需要class, interface或enum
n = n1; m = 0;
^
0_0_19032310_6130\Main.java:69: 错误: 需要class, interface或enum
memset(top, 0, sizeof(top));
^
0_0_19032310_6130\Main.java:70: 错误: 需要class, interface或enum
memset(gh, 0, sizeof(gh));
^
0_0_19032310_6130\Main.java:71: 错误: 需要class, interface或enum
for (int i=1;i<=n;i++) dist[i] = inf;
^
0_0_19032310_6130\Main.java:71: 错误: 需要class, interface或enum
for (int i=1;i<=n;i++) dist[i] = inf;
^
0_0_19032310_6130\Main.java:71: 错误: 需要class, interface或enum
for (int i=1;i<=n;i++) dist[i] = inf;
^
0_0_19032310_6130\Main.java:72: 错误: 需要class, interface或enum
}
^
0_0_19032310_6130\Main.java:75: 错误: 需要class, interface或enum
edge[id][top[id]].w = w;
^
0_0_19032310_6130\Main.java:76: 错误: 需要class, interface或enum
edge[id][top[id]].next = gh[id][x];
^
0_0_19032310_6130\Main.java:77: 错误: 需要class, interface或enum
gh[id][x] = top[id];
^
0_0_19032310_6130\Main.java:78: 错误: 需要class, interface或enum
}
^
0_0_19032310_6130\Main.java:81: 错误: 需要class, interface或enum
e[++m].x=x; e[m].y=y; e[m].w=w;
^
0_0_19032310_6130\Main.java:81: 错误: 需要class, interface或enum
e[++m].x=x; e[m].y=y; e[m].w=w;
^
0_0_19032310_6130\Main.java:81: 错误: 需要class, interface或enum
e[++m].x=x; e[m].y=y; e[m].w=w;
^
0_0_19032310_6130\Main.java:82: 错误: 需要class, interface或enum
}
^
0_0_19032310_6130\Main.java:84: 错误: 需要class, interface或enum
void spfa(int S) {
^
0_0_19032310_6130\Main.java:85: 错误: 需要class, interface或enum
for (int i=1;i<=n;i++) v[i] = 0;
^
0_0_19032310_6130\Main.java:85: 错误: 需要class, interface或enum
for (int i=1;i<=n;i++) v[i] = 0;
^
0_0_19032310_6130\Main.java:86: 错误: 需要class, interface或enum
int head = 0, tail =1;
^
0_0_19032310_6130\Main.java:87: 错误: 需要class, interface或enum
dist[S] = 0; q[1] = S;
^
0_0_19032310_6130\Main.java:87: 错误: 需要class, interface或enum
dist[S] = 0; q[1] = S;
^
0_0_19032310_6130\Main.java:88: 错误: 需要class, interface或enum
while (head != tail) {
^
0_0_19032310_6130\Main.java:90: 错误: 需要class, interface或enum
int x = q[head]; v[x] = 0;
^
0_0_19032310_6130\Main.java:90: 错误: 需要class, interface或enum
int x = q[head]; v[x] = 0;
^
0_0_19032310_6130\Main.java:91: 错误: 需要class, interface或enum
for (int p=gh[1][x]; p; p=edge[1][p].next)
^
0_0_19032310_6130\Main.java:91: 错误: 需要class, interface或enum
for (int p=gh[1][x]; p; p=edge[1][p].next)
^
0_0_19032310_6130\Main.java:91: 错误: 需要class, interface或enum
for (int p=gh[1][x]; p; p=edge[1][p].next)
^
0_0_19032310_6130\Main.java:94: 错误: 需要class, interface或enum
best[edge[1][p].adj] = x;
^
0_0_19032310_6130\Main.java:95: 错误: 需要class, interface或enum
bestw[edge[1][p].adj] = p;
^
0_0_19032310_6130\Main.java:96: 错误: 需要class, interface或enum
if (!v[edge[1][p].adj]) {
^
0_0_19032310_6130\Main.java:98: 错误: 需要class, interface或enum
(tail += 1) %= N;
^
0_0_19032310_6130\Main.java:99: 错误: 需要class, interface或enum
q[tail] = edge[1][p].adj;
^
0_0_19032310_6130\Main.java:100: 错误: 需要class, interface或enum
}
^
0_0_19032310_6130\Main.java:105: 错误: 需要class, interface或enum
if (v[x]) return; v[x] = 1;
^
0_0_19032310_6130\Main.java:106: 错误: 需要class, interface或enum
if (best[x]) root[x] = root[best[x]];
^
0_0_19032310_6130\Main.java:107: 错误: 需要class, interface或enum
for (int p=gh[0][x]; p; p=edge[0][p].next)
^
0_0_19032310_6130\Main.java:107: 错误: 需要class, interface或enum
for (int p=gh[0][x]; p; p=edge[0][p].next)
^
0_0_19032310_6130\Main.java:107: 错误: 需要class, interface或enum
for (int p=gh[0][x]; p; p=edge[0][p].next)
^
0_0_19032310_6130\Main.java:110: 错误: 需要class, interface或enum
|