0_0_22720666_21109.cpp: In function 'int query(int, int, int, int)':
0_0_22720666_21109.cpp:35:14: error: 'x' was not declared in this scope
sum[rt] -= x;
^
0_0_22720666_21109.cpp:39:13: error: 'MAX' was not declared in this scope
int ret = (MAX[rt<<1]>=x) ? query(x, lson) : query(x, rson);
^
0_0_22720666_21109.cpp:39:25: error: 'x' was not declared in this scope
int ret = (MAX[rt<<1]>=x) ? query(x, lson) : query(x, rson);
^
0_0_22720666_21109.cpp: In function 'int main()':
0_0_22720666_21109.cpp:53:9: error: 'n' was not declared in this scope
while(n--)
^
|