0_0_20507507_20972\Main.java:4: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_20507507_20972\Main.java:4: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
^
0_0_20507507_20972\Main.java:7: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_20507507_20972\Main.java:8: 错误: 需要class, interface或enum
inline int readInt() {
^
0_0_20507507_20972\Main.java:10: 错误: 需要class, interface或enum
n = 0, ch = getchar();
^
0_0_20507507_20972\Main.java:11: 错误: 需要class, interface或enum
while (!isdigit(ch)) ch = getchar();
^
0_0_20507507_20972\Main.java:12: 错误: 需要class, interface或enum
while (isdigit(ch)) n = n * 10 + ch - '0', ch = getchar();
^
0_0_20507507_20972\Main.java:13: 错误: 需要class, interface或enum
return n;
^
0_0_20507507_20972\Main.java:14: 错误: 需要class, interface或enum
}
^
0_0_20507507_20972\Main.java:18: 错误: 需要class, interface或enum
struct Fenwick {
^
0_0_20507507_20972\Main.java:19: 错误: 非法字符: '#'
#define lowbit(i) ((i) & -(i))
^
0_0_20507507_20972\Main.java:23: 错误: 需要class, interface或enum
void init(int _n) {
^
0_0_20507507_20972\Main.java:25: 错误: 需要class, interface或enum
memset(a, 0, sizeof a);
^
0_0_20507507_20972\Main.java:26: 错误: 需要class, interface或enum
}
^
0_0_20507507_20972\Main.java:29: 错误: 需要class, interface或enum
for (int i = pos + 1; i <= n; i += lowbit(i))
^
0_0_20507507_20972\Main.java:29: 错误: 需要class, interface或enum
for (int i = pos + 1; i <= n; i += lowbit(i))
^
0_0_20507507_20972\Main.java:31: 错误: 需要class, interface或enum
}
^
0_0_20507507_20972\Main.java:35: 错误: 需要class, interface或enum
for (int i = pos + 1; i > 0; i -= lowbit(i))
^
0_0_20507507_20972\Main.java:35: 错误: 需要class, interface或enum
for (int i = pos + 1; i > 0; i -= lowbit(i))
^
0_0_20507507_20972\Main.java:35: 错误: 需要class, interface或enum
for (int i = pos + 1; i > 0; i -= lowbit(i))
^
0_0_20507507_20972\Main.java:37: 错误: 需要class, interface或enum
return res;
^
0_0_20507507_20972\Main.java:38: 错误: 需要class, interface或enum
}
^
0_0_20507507_20972\Main.java:41: 错误: 需要class, interface或enum
int n, m, a[MAX_N], pos[MAX_N], ans[MAX_M];
^
0_0_20507507_20972\Main.java:43: 错误: 需要class, interface或enum
vector<pair<int, int> > querys[MAX_N];
^
0_0_20507507_20972\Main.java:44: 错误: 需要class, interface或enum
vector<int> factors[MAX_N];
^
0_0_20507507_20972\Main.java:46: 错误: 需要class, interface或enum
void solve() {
^
0_0_20507507_20972\Main.java:48: 错误: 需要class, interface或enum
static int lastPos[MAX_N];
^
0_0_20507507_20972\Main.java:49: 错误: 需要class, interface或enum
memset(lastPos, -1, sizeof lastPos);
^
0_0_20507507_20972\Main.java:50: 错误: 需要class, interface或enum
for (int i = n - 1; i >= 0; --i) {
^
0_0_20507507_20972\Main.java:50: 错误: 需要class, interface或enum
for (int i = n - 1; i >= 0; --i) {
^
0_0_20507507_20972\Main.java:50: 错误: 需要class, interface或enum
for (int i = n - 1; i >= 0; --i) {
^
0_0_20507507_20972\Main.java:51: 错误: 需要class, interface或enum
for (int j = 0; j < (int)factors[a[i]].size(); ++j) {
^
0_0_20507507_20972\Main.java:51: 错误: 需要class, interface或enum
for (int j = 0; j < (int)factors[a[i]].size(); ++j) {
^
0_0_20507507_20972\Main.java:53: 错误: 需要class, interface或enum
lastPos[factors[a[i]][j]] = i;
^
0_0_20507507_20972\Main.java:54: 错误: 需要class, interface或enum
}
^
0_0_20507507_20972\Main.java:55: 错误: 需要class, interface或enum
for (int j = 0; j < (int)querys[i].size(); ++j)
^
0_0_20507507_20972\Main.java:55: 错误: 需要class, interface或enum
for (int j = 0; j < (int)querys[i].size(); ++j)
^
0_0_20507507_20972\Main.java:57: 错误: 需要class, interface或enum
}
^
0_0_20507507_20972\Main.java:61: 错误: 非法字符: '#'
#ifdef DEBUG
^
0_0_20507507_20972\Main.java:63: 错误: 非法字符: '#'
#endif
^
0_0_20507507_20972\Main.java:64: 错误: 需要class, interface或enum
for (int i = 1; i < MAX_N; ++i)
^
0_0_20507507_20972\Main.java:64: 错误: 需要class, interface或enum
for (int i = 1; i < MAX_N; ++i)
^
0_0_20507507_20972\Main.java:64: 错误: 需要class, interface或enum
for (int i = 1; i < MAX_N; ++i)
^
0_0_20507507_20972\Main.java:65: 错误: 需要class, interface或enum
for (int j = i; j < MAX_N; j += i)
^
0_0_20507507_20972\Main.java:65: 错误: 需要class, interface或enum
for (int j = i; j < MAX_N; j += i)
^
0_0_20507507_20972\Main.java:68: 错误: 需要class, interface或enum
int caseNum = readInt();
^
0_0_20507507_20972\Main.java:69: 错误: 需要class, interface或enum
while (caseNum--) {
^
0_0_20507507_20972\Main.java:71: 错误: 需要class, interface或enum
for (int i = 0; i < n; ++i) a[i] = readInt(), pos[a[i]] = i, querys[i].clear();
^
0_0_20507507_20972\Main.java:71: 错误: 需要class, interface或enum
for (int i = 0; i < n; ++i) a[i] = readInt(), pos[a[i]] = i, querys[i].clear();
^
0_0_20507507_20972\Main.java:71: 错误: 需要class, interface或enum
for (int i = 0; i < n; ++i) a[i] = readInt(), pos[a[i]] = i, querys[i].clear();
^
0_0_20507507_20972\Main.java:72: 错误: 需要class, interface或enum
m = readInt();
^
0_0_20507507_20972\Main.java:73: 错误: 需要class, interface或enum
for (int i = 0; i < m; ++i) {
^
0_0_20507507_20972\Main.java:73: 错误: 需要class, interface或enum
for (int i = 0; i < m; ++i) {
^
0_0_20507507_20972\Main.java:73: 错误: 需要class, interface或enum
for (int i = 0; i < m; ++i) {
^
0_0_20507507_20972\Main.java:75: 错误: 需要class, interface或enum
querys[l].push_back(make_pair(r, i));
^
0_0_20507507_20972\Main.java:76: 错误: 需要class, interface或enum
}
^
0_0_20507507_20972\Main.java:80: 错误: 需要class, interface或enum
for (int i = 0; i < m; ++i) printf("%d\n", ans[i]);
^
0_0_20507507_20972\Main.java:80: 错误: 需要class, interface或enum
for (int i = 0; i < m; ++i) printf("%d\n", ans[i]);
^
0_0_20507507_20972\Main.java:80: 错误: 需要class, interface或enum
for (int i = 0; i < m; ++i) printf("%d\n", ans[i]);
^
0_0_20507507_20972\Main.java:81: 错误: 需要class, interface或enum
}
^
0_0_20507507_20972\Main.java:84: 错误: 需要class, interface或enum
}
^
61 个错误
|