0_0_30165169_25713.cpp:1:1: error: 'include' does not name a type
include <bits/stdc++.h>
^
0_0_30165169_25713.cpp: In member function 'SegTree::node SegTree::Unite(const SegTree::node&, const SegTree::node&)':
0_0_30165169_25713.cpp:15:15: error: 'max' is not a member of 'std'
ret.max = std::max(k1.suf + k2.pre, std::max(k1.max, k2.max));
^
0_0_30165169_25713.cpp:15:41: error: 'max' is not a member of 'std'
ret.max = std::max(k1.suf + k2.pre, std::max(k1.max, k2.max));
^
0_0_30165169_25713.cpp:17:15: error: 'max' is not a member of 'std'
ret.pre = std::max(k1.pre, k1.sum + k2.pre);
^
0_0_30165169_25713.cpp:18:15: error: 'max' is not a member of 'std'
ret.suf = std::max(k2.suf, k2.sum + k1.suf);
^
0_0_30165169_25713.cpp: In member function 'void SegTree::Modify(int, int, int, int, long long int)':
0_0_30165169_25713.cpp:47:39: error: 'll' was not declared in this scope
if (idx <= m) Modify(o * 2, l, m, ll, rr, v);
^
0_0_30165169_25713.cpp:47:43: error: 'rr' was not declared in this scope
if (idx <= m) Modify(o * 2, l, m, ll, rr, v);
^
0_0_30165169_25713.cpp:48:38: error: 'll' was not declared in this scope
else Modify(o * 2 + 1, m + 1, r, ll, rr, v);
^
0_0_30165169_25713.cpp:48:42: error: 'rr' was not declared in this scope
else Modify(o * 2 + 1, m + 1, r, ll, rr, v);
^
0_0_30165169_25713.cpp: At global scope:
0_0_30165169_25713.cpp:74:6: error: 'vector' in namespace 'std' does not name a template type
std::vector<int> yele[maxn];
^
0_0_30165169_25713.cpp: In function 'int GetX(int)':
0_0_30165169_25713.cpp:79:10: error: 'lower_bound' is not a member of 'std'
return std::lower_bound(x + 1, x + xsz + 1, k) - x;
^
0_0_30165169_25713.cpp: In function 'int GetY(int)':
0_0_30165169_25713.cpp:82:10: error: 'lower_bound' is not a member of 'std'
return std::lower_bound(y + 1, y + ysz + 1, k) - y;
^
0_0_30165169_25713.cpp: In function 'int main()':
0_0_30165169_25713.cpp:86:17: error: 'scanf' was not declared in this scope
scanf("%d", &t);
^
0_0_30165169_25713.cpp:93:5: error: 'sort' is not a member of 'std'
std::sort(x + 1, x + n + 1);
^
0_0_30165169_25713.cpp:94:11: error: 'unique' is not a member of 'std'
xsz = std::unique(x + 1, x + n + 1) - x - 1;
^
0_0_30165169_25713.cpp:95:5: error: 'sort' is not a member of 'std'
std::sort(y + 1, y + n + 1);
^
0_0_30165169_25713.cpp:96:11: error: 'unique' is not a member of 'std'
ysz = std::unique(y + 1, y + n + 1) - y - 1;
^
0_0_30165169_25713.cpp:97:36: error: 'yele' was not declared in this scope
for (int i = 1; i <= ysz; ++i) yele[i].clear();
^
0_0_30165169_25713.cpp:98:34: error: 'yele' was not declared in this scope
for (int i = 1; i <= n; ++i) yele[GetY(p[i].y)].emplace_back(i);
^
0_0_30165169_25713.cpp:100:12: error: 'inf' was not declared in this scope
ans = -inf;
^
0_0_30165169_25713.cpp:104:24: error: 'yele' was not declared in this scope
for (int &pt : yele[j]) tree.Modify(GetX(p[pt].x), p[pt].c);
^
0_0_30165169_25713.cpp:105:15: error: 'max' is not a member of 'std'
ans = std::max(ans, tree.Query().max);
^
0_0_30165169_25713.cpp:108:25: error: 'printf' was not declared in this scope
printf("%lld\n", ans);
^
|