0_0_22404315_18284.cpp: In function 'int main()':
0_0_22404315_18284.cpp:4:33: error: 'scanf' was not declared in this scope
while(~ scanf("%d%d", &n, &m))
^
0_0_22404315_18284.cpp:6:14: error: 'init' was not declared in this scope
init();
^
0_0_22404315_18284.cpp:7:50: error: 'x' was not declared in this scope
for(int i = 1; i <= n; i++) scanf("%d", &x[i].val), x[i].id = i;
^
0_0_22404315_18284.cpp:8:14: error: 'x' was not declared in this scope
sort(x + 1, x + 1 + n, [](qnode a, qnode b){return a.val < b.val;});
^
0_0_22404315_18284.cpp:8:35: error: 'qnode' has not been declared
sort(x + 1, x + 1 + n, [](qnode a, qnode b){return a.val < b.val;});
^
0_0_22404315_18284.cpp:8:44: error: 'qnode' has not been declared
sort(x + 1, x + 1 + n, [](qnode a, qnode b){return a.val < b.val;});
^
0_0_22404315_18284.cpp: In lambda function:
0_0_22404315_18284.cpp:8:62: error: request for member 'val' in 'a', which is of non-class type 'int'
sort(x + 1, x + 1 + n, [](qnode a, qnode b){return a.val < b.val;});
^
0_0_22404315_18284.cpp:8:70: error: request for member 'val' in 'b', which is of non-class type 'int'
sort(x + 1, x + 1 + n, [](qnode a, qnode b){return a.val < b.val;});
^
0_0_22404315_18284.cpp: In function 'int main()':
0_0_22404315_18284.cpp:8:75: error: 'sort' was not declared in this scope
sort(x + 1, x + 1 + n, [](qnode a, qnode b){return a.val < b.val;});
^
0_0_22404315_18284.cpp:13:26: error: 'add_edge' was not declared in this scope
add_edge(a, b); add_edge(b, a);
^
0_0_22404315_18284.cpp:15:21: error: 'dfs1' was not declared in this scope
dfs1(1, 0, 1);
^
0_0_22404315_18284.cpp:16:18: error: 'dfs2' was not declared in this scope
dfs2(1, 1);
^
0_0_22404315_18284.cpp:17:18: error: 'num' was not declared in this scope
build(1, num, 1);
^
0_0_22404315_18284.cpp:17:24: error: 'build' was not declared in this scope
build(1, num, 1);
^
0_0_22404315_18284.cpp:22:13: error: 'q' was not declared in this scope
q[++k].s = a, q[k].t = b, q[k].val = c-1, q[k].id = i*2;
^
0_0_22404315_18284.cpp:25:14: error: 'q' was not declared in this scope
sort(q + 1, q + 1 + k, [](qnode a, qnode b){return a.val < b.val;});
^
0_0_22404315_18284.cpp:25:35: error: 'qnode' has not been declared
sort(q + 1, q + 1 + k, [](qnode a, qnode b){return a.val < b.val;});
^
0_0_22404315_18284.cpp:25:44: error: 'qnode' has not been declared
sort(q + 1, q + 1 + k, [](qnode a, qnode b){return a.val < b.val;});
^
0_0_22404315_18284.cpp: In lambda function:
0_0_22404315_18284.cpp:25:62: error: request for member 'val' in 'a', which is of non-class type 'int'
sort(q + 1, q + 1 + k, [](qnode a, qnode b){return a.val < b.val;});
^
0_0_22404315_18284.cpp:25:70: error: request for member 'val' in 'b', which is of non-class type 'int'
sort(q + 1, q + 1 + k, [](qnode a, qnode b){return a.val < b.val;});
^
0_0_22404315_18284.cpp: In function 'int main()':
0_0_22404315_18284.cpp:29:60: error: 'id' was not declared in this scope
while(en <= n && x[en].val <= q[i].val) update(id[x[en].id], x[en].val, 1), en++;
^
0_0_22404315_18284.cpp:29:86: error: 'update' was not declared in this scope
while(en <= n && x[en].val <= q[i].val) update(id[x[en].id], x[en].val, 1), en++;
^
0_0_22404315_18284.cpp:30:29: error: 'ansr' was not declared in this scope
if(q[i].id & 1) ansr[q[i].id/2] = Query(q[i].s, q[i].t);
^
0_0_22404315_18284.cpp:30:67: error: 'Query' was not declared in this scope
if(q[i].id & 1) ansr[q[i].id/2] = Query(q[i].s, q[i].t);
^
0_0_22404315_18284.cpp:31:18: error: 'ansl' was not declared in this scope
else ansl[q[i].id/2] = Query(q[i].s, q[i].t);
^
0_0_22404315_18284.cpp:31:56: error: 'Query' was not declared in this scope
else ansl[q[i].id/2] = Query(q[i].s, q[i].t);
^
0_0_22404315_18284.cpp:33:54: error: 'ansr' was not declared in this scope
for(int i = 1; i <= m; i++) printf("%lld%c", ansr[i]-ansl[i], i == m ? '\n' : ' ');
^
0_0_22404315_18284.cpp:33:62: error: 'ansl' was not declared in this scope
for(int i = 1; i <= m; i++) printf("%lld%c", ansr[i]-ansl[i], i == m ? '\n' : ' ');
^
0_0_22404315_18284.cpp:33:90: error: 'printf' was not declared in this scope
for(int i = 1; i <= m; i++) printf("%lld%c", ansr[i]-ansl[i], i == m ? '\n' : ' ');
^
|