cplib-cpp

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub hitonanode/cplib-cpp

:warning: segmenttree/trees/acl_range-add-chmax-range-min.hpp

Depends on

Code

#pragma once
#include "../acl_lazysegtree.hpp"
#include <algorithm>

namespace RangeAddChmaxRangeMin {

using S = long long;
constexpr S INF = 1LL << 60;

S e() { return INF; }

S op(S l, S r) { return std::min(l, r); }

struct F {
    // meaning: max(lower_bound, x) + bias
    S lower_bound, bias;
    F() : lower_bound(-INF), bias(0) {}
    F(S lower_bound, S bias) : lower_bound(lower_bound), bias(bias) {}
    static F chmax(S x) { return F(x, S()); }
    static F add(S x) { return F(-INF, x); }
};

F id() { return F(); }

S mapping(F f, S x) { return std::max(f.lower_bound, x) + f.bias; }

F composition(F fnew, F gold) {
    return F(std::max(gold.lower_bound + gold.bias, fnew.lower_bound) - gold.bias,
             gold.bias + fnew.bias);
}

using segtree = atcoder::lazy_segtree<S, op, e, F, mapping, composition, id>;
}; // namespace RangeAddChmaxRangeMin
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
Back to top page