0_0_33285912_6345.cpp: In function 'int work(int, int, int)':
0_0_33285912_6345.cpp:41:32: error: expected primary-expression before '<' token
int work(int l,int r,int val) {<br>// 在块l,r内返回能力值 > val 的最大忠诚<br>// 二分区间端点判定
^
0_0_33285912_6345.cpp:41:33: error: 'br' was not declared in this scope
int work(int l,int r,int val) {<br>// 在块l,r内返回能力值 > val 的最大忠诚<br>// 二分区间端点判定
^
0_0_33285912_6345.cpp:42:5: error: expected primary-expression before 'if'
if (sorted[r].ability <= val) return -1;
^
0_0_33285912_6345.cpp: In function 'int main()':
0_0_33285912_6345.cpp:61:35: error: 'memset' was not declared in this scope
memset(maxl,0,sizeof(maxl));
^
0_0_33285912_6345.cpp:65:22: error: expected primary-expression before '<' token
rev[-1] = -1;<br>// 以上是初始化
^
0_0_33285912_6345.cpp:65:23: error: 'br' was not declared in this scope
rev[-1] = -1;<br>// 以上是初始化
^
0_0_33285912_6345.cpp:66:9: error: expected primary-expression before 'for'
for (int i = 1; i < n; i++) {
^
0_0_33285912_6345.cpp:66:25: error: 'i' was not declared in this scope
for (int i = 1; i < n; i++) {
^
0_0_33285912_6345.cpp:74:16: error: expected primary-expression before '<' token
dfs(0);<br>// 以上是构图DFS
^
0_0_33285912_6345.cpp:75:9: error: expected primary-expression before 'for'
for (int i = 0; i < n; i += MAGIC) {
^
0_0_33285912_6345.cpp:90:41: error: expected primary-expression before '<' token
for (int i = st; i <= ed;) {<br>// 二分块
^
0_0_33285912_6345.cpp:91:17: error: expected primary-expression before 'if'
if (i % MAGIC == 0 && i + MAGIC - 1 <= ed) {
^
0_0_33285912_6345.cpp:95:19: error: 'else' without a previous 'if'
} else {<br>// 暴力搞
^
0_0_33285912_6345.cpp:95:25: error: expected primary-expression before '<' token
} else {<br>// 暴力搞
^
0_0_33285912_6345.cpp:96:21: error: expected primary-expression before 'if'
if (list[i].ability > val && list[i].loyalty > ans) ans = list[i].loyalty;
^
0_0_33285912_6345.cpp:102:5: error: expected ';' before '}' token
}
^
|