This documentation is automatically generated by online-judge-tools/verification-helper
#define PROBLEM "https://judge.yosupo.jp/problem/point_set_range_composite"
#include "../../functional/reverse_args.hpp"
#include "../../math/monoid/affine.hpp"
#include "../../modint/mont.hpp"
#include "../../segment_tree/seg.hpp"
#include "../../template/template.hpp"
using namespace std;
int main() {
int n, q;
kin >> n >> q;
using M = kk2::monoid::Affine<kk2::mont998>;
vc<M> a(n);
kin >> a;
kk2::SegmentTree<M, kk2::reverse_args<M::op>, M::unit> seg(a);
rep (q) {
int t;
kin >> t;
if (t == 0) {
int p;
kk2::mont998 c, d;
kin >> p >> c >> d;
seg.set(p, c, d);
}
if (t == 1) {
int l, r;
kk2::mont998 x;
kin >> l >> r >> x;
kout << seg.prod(l, r).eval(x) << "\n";
}
}
return 0;
}
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/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.12.0/x64/lib/python3.12/site-packages/onlinejudge_verify/languages/cplusplus.py", line 187, in bundle
bundler.update(path)
File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/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.12.0/x64/lib/python3.12/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.12.0/x64/lib/python3.12/site-packages/onlinejudge_verify/languages/cplusplus_bundle.py", line 312, in update
raise BundleErrorAt(path, i + 1, "#pragma once found in a non-first line")
onlinejudge_verify.languages.cplusplus_bundle.BundleErrorAt: type_traits/functional.hpp: line 4: #pragma once found in a non-first line