0_0_26030504_2034\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_26030504_2034\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
^
0_0_26030504_2034\Main.java:4: 错误: 需要class, interface或enum
typedef pair<int, int> PII;
^
0_0_26030504_2034\Main.java:6: 错误: 需要class, interface或enum
const int maxn = 1 << 17;
^
0_0_26030504_2034\Main.java:7: 错误: 需要class, interface或enum
vector<int> G[maxn], sp;
^
0_0_26030504_2034\Main.java:8: 错误: 需要class, interface或enum
int dep[maxn], dfn[maxn];
^
0_0_26030504_2034\Main.java:9: 错误: 需要class, interface或enum
PII dp[21][maxn << 1];
^
0_0_26030504_2034\Main.java:10: 错误: 需要class, interface或enum
void init(int n)
^
0_0_26030504_2034\Main.java:12: 错误: 需要class, interface或enum
for (int i = 0; i < n; i++) G[i].clear();
^
0_0_26030504_2034\Main.java:12: 错误: 需要class, interface或enum
for (int i = 0; i < n; i++) G[i].clear();
^
0_0_26030504_2034\Main.java:13: 错误: 需要class, interface或enum
sp.clear();
^
0_0_26030504_2034\Main.java:14: 错误: 需要class, interface或enum
}
^
0_0_26030504_2034\Main.java:18: 错误: 需要class, interface或enum
dfn[u] = sp.size();
^
0_0_26030504_2034\Main.java:19: 错误: 需要class, interface或enum
sp.push_back(u);
^
0_0_26030504_2034\Main.java:20: 错误: 需要class, interface或enum
for (auto& v : G[u])
^
0_0_26030504_2034\Main.java:23: 错误: 需要class, interface或enum
dfs(v, u);
^
0_0_26030504_2034\Main.java:24: 错误: 需要class, interface或enum
sp.push_back(u);
^
0_0_26030504_2034\Main.java:25: 错误: 需要class, interface或enum
}
^
0_0_26030504_2034\Main.java:30: 错误: 需要class, interface或enum
for (int i = 0; i < n; i++) dp[0][i] = {dfn[sp[i]], sp[i]};
^
0_0_26030504_2034\Main.java:30: 错误: 需要class, interface或enum
for (int i = 0; i < n; i++) dp[0][i] = {dfn[sp[i]], sp[i]};
^
0_0_26030504_2034\Main.java:30: 错误: 需要class, interface或enum
for (int i = 0; i < n; i++) dp[0][i] = {dfn[sp[i]], sp[i]};
^
0_0_26030504_2034\Main.java:31: 错误: 需要class, interface或enum
for (int i = 1; (1 << i) <= n; i++)
^
0_0_26030504_2034\Main.java:31: 错误: 需要class, interface或enum
for (int i = 1; (1 << i) <= n; i++)
^
0_0_26030504_2034\Main.java:31: 错误: 需要class, interface或enum
for (int i = 1; (1 << i) <= n; i++)
^
0_0_26030504_2034\Main.java:32: 错误: 需要class, interface或enum
for (int j = 0; j + (1 << i) - 1 < n; j++)
^
0_0_26030504_2034\Main.java:32: 错误: 需要class, interface或enum
for (int j = 0; j + (1 << i) - 1 < n; j++)
^
0_0_26030504_2034\Main.java:34: 错误: 需要class, interface或enum
}
^
0_0_26030504_2034\Main.java:38: 错误: 需要class, interface或enum
if (l > r) swap(l, r);
^
0_0_26030504_2034\Main.java:39: 错误: 需要class, interface或enum
int k = 31 - __builtin_clz(r - l + 1);
^
0_0_26030504_2034\Main.java:40: 错误: 需要class, interface或enum
return min(dp[k][l], dp[k][r - (1 << k) + 1]).second;
^
0_0_26030504_2034\Main.java:41: 错误: 需要class, interface或enum
}
^
0_0_26030504_2034\Main.java:45: 错误: 需要class, interface或enum
vector<int> pos[maxn];
^
0_0_26030504_2034\Main.java:46: 错误: 需要class, interface或enum
int ans[maxn];
^
0_0_26030504_2034\Main.java:47: 错误: 需要class, interface或enum
int mx;
^
0_0_26030504_2034\Main.java:48: 错误: 需要class, interface或enum
inline void solve(int g)
^
0_0_26030504_2034\Main.java:51: 错误: 需要class, interface或enum
vector<int> Node;
^
0_0_26030504_2034\Main.java:52: 错误: 需要class, interface或enum
for (int j = g; j <= mx; j += g)
^
0_0_26030504_2034\Main.java:52: 错误: 需要class, interface或enum
for (int j = g; j <= mx; j += g)
^
0_0_26030504_2034\Main.java:52: 错误: 需要class, interface或enum
for (int j = g; j <= mx; j += g)
^
0_0_26030504_2034\Main.java:54: 错误: 需要class, interface或enum
sort(Node.begin(), Node.end(), [&](int x, int y) {
^
0_0_26030504_2034\Main.java:56: 错误: 需要class, interface或enum
});
^
0_0_26030504_2034\Main.java:57: 错误: 需要class, interface或enum
for (int i = 1; i < Node.size(); i++)
^
0_0_26030504_2034\Main.java:57: 错误: 需要class, interface或enum
for (int i = 1; i < Node.size(); i++)
^
0_0_26030504_2034\Main.java:57: 错误: 需要class, interface或enum
for (int i = 1; i < Node.size(); i++)
^
0_0_26030504_2034\Main.java:60: 错误: 需要class, interface或enum
ans[u] = max(ans[u], g);
^
0_0_26030504_2034\Main.java:61: 错误: 需要class, interface或enum
}
^
0_0_26030504_2034\Main.java:66: 错误: 非法字符: '#'
#ifndef ONLINE_JUDGE
^
0_0_26030504_2034\Main.java:68: 错误: 需要class, interface或enum
freopen("1.out", "w", stdout);
^
0_0_26030504_2034\Main.java:69: 错误: 非法字符: '#'
#endif
^
0_0_26030504_2034\Main.java:70: 错误: 需要class, interface或enum
int n;
^
0_0_26030504_2034\Main.java:71: 错误: 需要class, interface或enum
scanf("%d", &n);
^
0_0_26030504_2034\Main.java:72: 错误: 需要class, interface或enum
for (int i = 2; i <= n; i++)
^
0_0_26030504_2034\Main.java:72: 错误: 需要class, interface或enum
for (int i = 2; i <= n; i++)
^
0_0_26030504_2034\Main.java:72: 错误: 需要class, interface或enum
for (int i = 2; i <= n; i++)
^
0_0_26030504_2034\Main.java:75: 错误: 需要class, interface或enum
G[fa[i]].push_back(i);
^
0_0_26030504_2034\Main.java:76: 错误: 需要class, interface或enum
}
^
0_0_26030504_2034\Main.java:77: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_26030504_2034\Main.java:77: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_26030504_2034\Main.java:80: 错误: 需要class, interface或enum
pos[val[i]].push_back(i);
^
0_0_26030504_2034\Main.java:81: 错误: 需要class, interface或enum
}
^
0_0_26030504_2034\Main.java:83: 错误: 需要class, interface或enum
dfs(1, 0);
^
0_0_26030504_2034\Main.java:84: 错误: 需要class, interface或enum
initrmq();
^
0_0_26030504_2034\Main.java:85: 错误: 需要class, interface或enum
for (int i = mx; i; i--) solve(i);
^
0_0_26030504_2034\Main.java:85: 错误: 需要class, interface或enum
for (int i = mx; i; i--) solve(i);
^
0_0_26030504_2034\Main.java:85: 错误: 需要class, interface或enum
for (int i = mx; i; i--) solve(i);
^
0_0_26030504_2034\Main.java:86: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) printf("%d\n", ans[i] ? ans[i] : -1);
^
0_0_26030504_2034\Main.java:86: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) printf("%d\n", ans[i] ? ans[i] : -1);
^
0_0_26030504_2034\Main.java:86: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) printf("%d\n", ans[i] ? ans[i] : -1);
^
0_0_26030504_2034\Main.java:87: 错误: 需要class, interface或enum
}
^
69 个错误
|