0_0_38470153_24276.cpp:21:7: error: 'MAXXN' was not declared in this scope
int a[MAXXN];
^
0_0_38470153_24276.cpp:25:6: error: 'MAXXN' was not declared in this scope
}ans[MAXXN<<2];
^
0_0_38470153_24276.cpp: In function 'void push_up(int)':
0_0_38470153_24276.cpp:30:2: error: 'ans' was not declared in this scope
ans[p].k = max(ans[p << 1].k, ans[(p << 1) | 1].k);
^
0_0_38470153_24276.cpp: In function 'void build(int, int, int)':
0_0_38470153_24276.cpp:34:2: error: 'ans' was not declared in this scope
ans[p].l = l;
^
0_0_38470153_24276.cpp:38:14: error: 'a' was not declared in this scope
ans[p].k = a[l];
^
0_0_38470153_24276.cpp: In function 'void up_date(int, int, int)':
0_0_38470153_24276.cpp:48:6: error: 'ans' was not declared in this scope
if (ans[p].l == ans[p].r)
^
0_0_38470153_24276.cpp:53:13: error: 'ans' was not declared in this scope
int mid = (ans[p].l + ans[p].r)>>1;
^
0_0_38470153_24276.cpp: In function 'int query(int, int, int)':
0_0_38470153_24276.cpp:60:11: error: 'ans' was not declared in this scope
if (l <= ans[p].l && r >= ans[p].r)
^
0_0_38470153_24276.cpp:62:13: error: 'ans' was not declared in this scope
int mid = (ans[p].l + ans[p].r)>>1;
^
0_0_38470153_24276.cpp: In function 'int main()':
0_0_38470153_24276.cpp:78:11: error: 'a' was not declared in this scope
cin >> a[i];
^
|