0_0_35346561_29741.cpp:9:13: error: 'MAXN' was not declared in this scope
int tag[MAXN << 2];
^
0_0_35346561_29741.cpp:10:5: error: 'll' does not name a type
ll sum[MAXN << 2];
^
0_0_35346561_29741.cpp:11:12: error: 'MAXN' was not declared in this scope
int mx[MAXN << 2];
^
0_0_35346561_29741.cpp:12:12: error: 'MAXN' was not declared in this scope
int cn[MAXN << 2];
^
0_0_35346561_29741.cpp:13:12: error: 'MAXN' was not declared in this scope
int se[MAXN << 2];
^
0_0_35346561_29741.cpp:73:5: error: 'll' does not name a type
ll QuerySum(int u, int l, int r, int L, int R) {
^
0_0_35346561_29741.cpp: In member function 'void SegmentTreeBeats::PushUp(int)':
0_0_35346561_29741.cpp:16:9: error: 'sum' was not declared in this scope
sum[u] = sum[ls] + sum[rs];
^
0_0_35346561_29741.cpp:17:12: error: 'mx' was not declared in this scope
if(mx[ls] < mx[rs]) {
^
0_0_35346561_29741.cpp:19:13: error: 'cn' was not declared in this scope
cn[u] = cn[rs];
^
0_0_35346561_29741.cpp:20:13: error: 'se' was not declared in this scope
se[u] = max(mx[ls], se[rs]);
^
0_0_35346561_29741.cpp:20:39: error: 'max' was not declared in this scope
se[u] = max(mx[ls], se[rs]);
^
0_0_35346561_29741.cpp:23:13: error: 'cn' was not declared in this scope
cn[u] = cn[ls];
^
0_0_35346561_29741.cpp:24:13: error: 'se' was not declared in this scope
se[u] = max(se[ls], mx[rs]);
^
0_0_35346561_29741.cpp:24:39: error: 'max' was not declared in this scope
se[u] = max(se[ls], mx[rs]);
^
0_0_35346561_29741.cpp:27:13: error: 'cn' was not declared in this scope
cn[u] = cn[ls] + cn[rs];
^
0_0_35346561_29741.cpp:28:13: error: 'se' was not declared in this scope
se[u] = max(se[ls], se[rs]);
^
0_0_35346561_29741.cpp:28:39: error: 'max' was not declared in this scope
se[u] = max(se[ls], se[rs]);
^
0_0_35346561_29741.cpp: In member function 'void SegmentTreeBeats::PushTag(int, int)':
0_0_35346561_29741.cpp:33:12: error: 'mx' was not declared in this scope
if(mx[u] <= t)
^
0_0_35346561_29741.cpp:35:9: error: 'sum' was not declared in this scope
sum[u] += 1LL * (t - mx[u]) * cn[u];
^
0_0_35346561_29741.cpp:35:30: error: 'mx' was not declared in this scope
sum[u] += 1LL * (t - mx[u]) * cn[u];
^
0_0_35346561_29741.cpp:35:39: error: 'cn' was not declared in this scope
sum[u] += 1LL * (t - mx[u]) * cn[u];
^
0_0_35346561_29741.cpp:36:17: error: 'tag' was not declared in this scope
mx[u] = tag[u] = t;
^
0_0_35346561_29741.cpp: In member function 'void SegmentTreeBeats::PushDown(int)':
0_0_35346561_29741.cpp:40:17: error: 'tag' was not declared in this scope
int t = tag[u];
^
0_0_35346561_29741.cpp: In member function 'void SegmentTreeBeats::Build(int, int, int)':
0_0_35346561_29741.cpp:49:9: error: 'tag' was not declared in this scope
tag[u] = -INF;
^
0_0_35346561_29741.cpp:51:13: error: 'sum' was not declared in this scope
sum[u] = mx[u] = a[l];
^
0_0_35346561_29741.cpp:51:22: error: 'mx' was not declared in this scope
sum[u] = mx[u] = a[l];
^
0_0_35346561_29741.cpp:51:30: error: 'a' was not declared in this scope
sum[u] = mx[u] = a[l];
^
0_0_35346561_29741.cpp:52:13: error: 'cn' was not declared in this scope
cn[u] = 1, se[u] = -INF;
^
0_0_35346561_29741.cpp:52:24: error: 'se' was not declared in this scope
cn[u] = 1, se[u] = -INF;
^
0_0_35346561_29741.cpp: In member function 'void SegmentTreeBeats::UpdateMin(int, int, int, int, int, int)':
0_0_35346561_29741.cpp:61:12: error: 'mx' was not declared in this scope
if(mx[u] <= v)
^
0_0_35346561_29741.cpp:63:32: error: 'se' was not declared in this scope
if(L <= l && r <= R && se[u] < v) {
^
0_0_35346561_29741.cpp: In member function 'int SegmentTreeBeats::QueryMax(int, int, int, int, int)':
0_0_35346561_29741.cpp:85:20: error: 'mx' was not declared in this scope
return mx[u];
^
0_0_35346561_29741.cpp:88:63: error: 'max' was not declared in this scope
if(L <= mid) res = max(res, QueryMax(ls, l, mid, L, R));
^
0_0_35346561_29741.cpp:89:71: error: 'max' was not declared in this scope
if(R >= mid + 1) res = max(res, QueryMax(rs, mid + 1, r, L, R));
^
|