0_0_19231616_15000.cpp: In function 'void pushUp(int)':
0_0_19231616_15000.cpp:18:58: error: 'min' was not declared in this scope
tree[id].mi = min(tree[id << 1].mi, tree[id << 1 | 1].mi);
^
0_0_19231616_15000.cpp:19:58: error: 'max' was not declared in this scope
tree[id].ma = max(tree[id << 1].ma, tree[id << 1 | 1].ma);
^
0_0_19231616_15000.cpp: In function 'void query(int, int, int, int)':
0_0_19231616_15000.cpp:45:26: error: 'abs' was not declared in this scope
if (abs(tree[id].mi - v) >= k)
^
0_0_19231616_15000.cpp:54:30: error: 'abs' was not declared in this scope
if (abs(tree[id << 1].mi - v) >= k || abs(tree[id << 1].ma - v) >= k)
^
0_0_19231616_15000.cpp:57:34: error: 'abs' was not declared in this scope
if (abs(tree[id << 1 | 1].mi - v) >= k || abs(tree[id << 1 | 1].ma - v) >= k)
^
0_0_19231616_15000.cpp: In function 'void input()':
0_0_19231616_15000.cpp:63:22: error: 'scanf' was not declared in this scope
scanf("%d%d", &n, &k);
^
0_0_19231616_15000.cpp: In function 'void work()':
0_0_19231616_15000.cpp:84:27: error: 'min' was not declared in this scope
d[i] = min(ans, d[i + 1]);
^
0_0_19231616_15000.cpp:87:22: error: 'printf' was not declared in this scope
printf("%lld\n", sum);
^
0_0_19231616_15000.cpp: In function 'int main()':
0_0_19231616_15000.cpp:94:16: error: 'scanf' was not declared in this scope
scanf("%d", &T);
^
|