This documentation is automatically generated by online-judge-tools/verification-helper
#include "segmenttree/trees/acl_range-update-range-sum-min.hpp"
#pragma once
#include "../acl_lazysegtree.hpp"
#include <algorithm>
// CUT begin
namespace RangeUpdateRangeSumMin {
using Int = long long;
const Int INF = 101010101010LL;
struct S {
Int sum;
int sz;
Int minval;
};
using F = std::pair<bool, Int>;
S op(S a, S b) { return S{a.sum + b.sum, a.sz + b.sz, std::min(a.minval, b.minval)}; }
S mapping(F f, S x) { return f.first ? S{x.sz * f.second, x.sz, f.second} : x; }
F composition(F later, F conventional) { return later.first ? later : conventional; }
S e() { return S{0, 0, INF}; }
F id() { return std::make_pair(false, INF); }
using segtree = atcoder::lazy_segtree<S, op, e, F, mapping, composition, id>;
}; // namespace RangeUpdateRangeSumMin
// Example of usage: https://codeforces.com/contest/1439/submission/98816580
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.13.3/x64/lib/python3.13/site-packages/onlinejudge_verify/documentation/build.py", line 71, in _render_source_code_stat
bundled_code = language.bundle(stat.path, basedir=basedir, options={'include_paths': [basedir]}).decode()
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.13.3/x64/lib/python3.13/site-packages/onlinejudge_verify/languages/cplusplus.py", line 187, in bundle
bundler.update(path)
~~~~~~~~~~~~~~^^^^^^
File "/opt/hostedtoolcache/Python/3.13.3/x64/lib/python3.13/site-packages/onlinejudge_verify/languages/cplusplus_bundle.py", line 401, in update
self.update(self._resolve(pathlib.Path(included), included_from=path))
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.13.3/x64/lib/python3.13/site-packages/onlinejudge_verify/languages/cplusplus_bundle.py", line 355, in update
raise BundleErrorAt(path, i + 1, "found codes out of include guard")
onlinejudge_verify.languages.cplusplus_bundle.BundleErrorAt: segmenttree/acl_lazysegtree.hpp: line 37: found codes out of include guard