0_0_38470214_26432.cpp:20:7: error: 'maxn' was not declared in this scope
int a[maxn];
^
0_0_38470214_26432.cpp:23:8: error: 'maxn' was not declared in this scope
} tree[maxn << 2];
^
0_0_38470214_26432.cpp: In function 'void push_up(int)':
0_0_38470214_26432.cpp:27:2: error: 'tree' was not declared in this scope
tree[p].k = max(tree[p << 1].k, tree[(p << 1) | 1].k);
^
0_0_38470214_26432.cpp: In function 'void build(int, int, int)':
0_0_38470214_26432.cpp:30:2: error: 'tree' was not declared in this scope
tree[p].l = l;
^
0_0_38470214_26432.cpp:33:15: error: 'a' was not declared in this scope
tree[p].k = a[l];
^
0_0_38470214_26432.cpp: In function 'void up_date(int, int, int)':
0_0_38470214_26432.cpp:42:6: error: 'tree' was not declared in this scope
if (tree[p].l == tree[p].r) {
^
0_0_38470214_26432.cpp:46:11: error: 'tree' was not declared in this scope
int m = (tree[p].l + tree[p].r) >> 1;
^
0_0_38470214_26432.cpp: In function 'int query(int, int, int)':
0_0_38470214_26432.cpp:53:11: error: 'tree' was not declared in this scope
if (x <= tree[p].l && y >= tree[p].r) return tree[p].k;
^
0_0_38470214_26432.cpp:54:11: error: 'tree' was not declared in this scope
int m = (tree[p].l + tree[p].r) >> 1;
^
0_0_38470214_26432.cpp: In function 'int main()':
0_0_38470214_26432.cpp:70:11: error: 'a' was not declared in this scope
cin >> a[i];
^
|