0_0_18877350_31945\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_18877350_31945\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
^
0_0_18877350_31945\Main.java:3: 错误: 非法字符: '#'
#define maxn 200005
^
0_0_18877350_31945\Main.java:3: 错误: 需要class, interface或enum
#define maxn 200005
^
0_0_18877350_31945\Main.java:4: 错误: 非法字符: '#'
#define maxm maxn*40
^
0_0_18877350_31945\Main.java:8: 错误: 需要class, interface或enum
int num;
^
0_0_18877350_31945\Main.java:9: 错误: 需要class, interface或enum
}tree[maxm];
^
0_0_18877350_31945\Main.java:10: 错误: 需要class, interface或enum
int T[maxn];
^
0_0_18877350_31945\Main.java:11: 错误: 需要class, interface或enum
int cnt;
^
0_0_18877350_31945\Main.java:12: 错误: 需要class, interface或enum
int n, m;
^
0_0_18877350_31945\Main.java:13: 错误: 需要class, interface或enum
int pre[maxn];
^
0_0_18877350_31945\Main.java:14: 错误: 需要class, interface或enum
int ans[maxn], a[maxn];
^
0_0_18877350_31945\Main.java:16: 错误: 需要class, interface或enum
int scan () {
^
0_0_18877350_31945\Main.java:18: 错误: 需要class, interface或enum
while(ch<'0'||ch>'9')ch=getchar();
^
0_0_18877350_31945\Main.java:19: 错误: 需要class, interface或enum
int x=0;
^
0_0_18877350_31945\Main.java:20: 错误: 需要class, interface或enum
while(ch<='9'&&ch>='0')x=x*10+ch-'0',ch=getchar();
^
0_0_18877350_31945\Main.java:21: 错误: 需要class, interface或enum
return x;
^
0_0_18877350_31945\Main.java:22: 错误: 需要class, interface或enum
}
^
0_0_18877350_31945\Main.java:26: 错误: 需要class, interface或enum
tree[root].num = 0;
^
0_0_18877350_31945\Main.java:27: 错误: 需要class, interface或enum
if (l == r) return root;
^
0_0_18877350_31945\Main.java:28: 错误: 需要class, interface或enum
int mid = (l+r)>>1;
^
0_0_18877350_31945\Main.java:29: 错误: 需要class, interface或enum
tree[root].l = build_tree (l, mid);
^
0_0_18877350_31945\Main.java:30: 错误: 需要class, interface或enum
tree[root].r = build_tree (mid+1, r);
^
0_0_18877350_31945\Main.java:31: 错误: 需要class, interface或enum
return root;
^
0_0_18877350_31945\Main.java:32: 错误: 需要class, interface或enum
}
^
0_0_18877350_31945\Main.java:36: 错误: 需要class, interface或enum
tree[new_root].num = tree[root].num+val;
^
0_0_18877350_31945\Main.java:37: 错误: 需要class, interface或enum
int l = 1, r = n;
^
0_0_18877350_31945\Main.java:38: 错误: 需要class, interface或enum
while (l < r) {
^
0_0_18877350_31945\Main.java:40: 错误: 需要class, interface或enum
if (pos <= mid) {
^
0_0_18877350_31945\Main.java:42: 错误: 需要class, interface或enum
tree[new_root].l = cnt++;
^
0_0_18877350_31945\Main.java:43: 错误: 需要class, interface或enum
new_root = tree[new_root].l;
^
0_0_18877350_31945\Main.java:44: 错误: 需要class, interface或enum
root = tree[root].l;
^
0_0_18877350_31945\Main.java:45: 错误: 需要class, interface或enum
r = mid;
^
0_0_18877350_31945\Main.java:46: 错误: 需要class, interface或enum
}
^
0_0_18877350_31945\Main.java:49: 错误: 需要class, interface或enum
tree[new_root].r = cnt++;
^
0_0_18877350_31945\Main.java:50: 错误: 需要class, interface或enum
new_root = tree[new_root].r;
^
0_0_18877350_31945\Main.java:51: 错误: 需要class, interface或enum
root = tree[root].r;
^
0_0_18877350_31945\Main.java:52: 错误: 需要class, interface或enum
l = mid+1;
^
0_0_18877350_31945\Main.java:53: 错误: 需要class, interface或enum
}
^
0_0_18877350_31945\Main.java:55: 错误: 需要class, interface或enum
}
^
0_0_18877350_31945\Main.java:57: 错误: 需要class, interface或enum
}
^
0_0_18877350_31945\Main.java:62: 错误: 需要class, interface或enum
int mid = (l+r)>>1;
^
0_0_18877350_31945\Main.java:63: 错误: 需要class, interface或enum
if (mid >= y) {
^
0_0_18877350_31945\Main.java:65: 错误: 需要class, interface或enum
}
^
0_0_18877350_31945\Main.java:68: 错误: 需要class, interface或enum
}
^
0_0_18877350_31945\Main.java:72: 错误: 需要class, interface或enum
}
^
0_0_18877350_31945\Main.java:76: 错误: 需要class, interface或enum
scanf ("%d", &kase);
^
0_0_18877350_31945\Main.java:77: 错误: 需要class, interface或enum
for (int ii = 1; ii <= kase; ii++) {
^
0_0_18877350_31945\Main.java:77: 错误: 需要class, interface或enum
for (int ii = 1; ii <= kase; ii++) {
^
0_0_18877350_31945\Main.java:77: 错误: 需要class, interface或enum
for (int ii = 1; ii <= kase; ii++) {
^
0_0_18877350_31945\Main.java:79: 错误: 需要class, interface或enum
cnt = 0;
^
0_0_18877350_31945\Main.java:80: 错误: 需要class, interface或enum
n = scan (), m = scan ();
^
0_0_18877350_31945\Main.java:81: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) a[i] = scan ();
^
0_0_18877350_31945\Main.java:81: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) a[i] = scan ();
^
0_0_18877350_31945\Main.java:81: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) a[i] = scan ();
^
0_0_18877350_31945\Main.java:82: 错误: 需要class, interface或enum
T[n+1] = build_tree (1, n);
^
0_0_18877350_31945\Main.java:83: 错误: 需要class, interface或enum
memset (pre, -1, sizeof pre);
^
0_0_18877350_31945\Main.java:84: 错误: 需要class, interface或enum
for (int i = n; i >= 1; i--) {
^
0_0_18877350_31945\Main.java:84: 错误: 需要class, interface或enum
for (int i = n; i >= 1; i--) {
^
0_0_18877350_31945\Main.java:84: 错误: 需要class, interface或enum
for (int i = n; i >= 1; i--) {
^
0_0_18877350_31945\Main.java:87: 错误: 需要class, interface或enum
pre[a[i]] = i;
^
0_0_18877350_31945\Main.java:88: 错误: 需要class, interface或enum
}
^
0_0_18877350_31945\Main.java:91: 错误: 需要class, interface或enum
T[i] = update (tmp, i, 1);
^
0_0_18877350_31945\Main.java:92: 错误: 需要class, interface或enum
pre[a[i]] = i;
^
0_0_18877350_31945\Main.java:93: 错误: 需要class, interface或enum
}
^
0_0_18877350_31945\Main.java:96: 错误: 需要class, interface或enum
ans[0] = 0;
^
0_0_18877350_31945\Main.java:97: 错误: 需要class, interface或enum
for (int i = 1; i <= m; i++) {
^
0_0_18877350_31945\Main.java:97: 错误: 需要class, interface或enum
for (int i = 1; i <= m; i++) {
^
0_0_18877350_31945\Main.java:97: 错误: 需要class, interface或enum
for (int i = 1; i <= m; i++) {
^
0_0_18877350_31945\Main.java:99: 错误: 需要class, interface或enum
l = min ((ll+ans[i-1])%n+1, (rr+ans[i-1])%n+1);
^
0_0_18877350_31945\Main.java:100: 错误: 需要class, interface或enum
r = max ((ll+ans[i-1])%n+1, (rr+ans[i-1])%n+1);
^
0_0_18877350_31945\Main.java:101: 错误: 需要class, interface或enum
int res = query (T[l], 1, n, l, r), k = (res+1)/2;
^
0_0_18877350_31945\Main.java:102: 错误: 需要class, interface或enum
int mid, L = l, R = r;
^
0_0_18877350_31945\Main.java:103: 错误: 需要class, interface或enum
while (R-L > 1) {
^
0_0_18877350_31945\Main.java:105: 错误: 需要class, interface或enum
if (query (T[l], 1, n, l, mid) >= k) R = mid;
^
0_0_18877350_31945\Main.java:106: 错误: 需要class, interface或enum
else L = mid;
^
0_0_18877350_31945\Main.java:107: 错误: 需要class, interface或enum
}
^
0_0_18877350_31945\Main.java:109: 错误: 需要class, interface或enum
else ans[i] = L;
^
0_0_18877350_31945\Main.java:110: 错误: 需要class, interface或enum
printf ("%d%c", ans[i], i == m ? '\n' : ' ');
^
0_0_18877350_31945\Main.java:111: 错误: 需要class, interface或enum
}
^
0_0_18877350_31945\Main.java:114: 错误: 需要class, interface或enum
}
^
81 个错误
|