This documentation is automatically generated by online-judge-tools/verification-helper
View the Project on GitHub EarthMessenger/icpc-snippet
#include "lib/ds/segtree.hpp" #include "lib/monoid/monoid_add.hpp" #define PROBLEM "https://judge.yosupo.jp/problem/point_add_range_sum" signed main() { using namespace std; ios::sync_with_stdio(false); cin.tie(0), cout.tie(0); u32 n, q; cin >> n >> q; vec<i64> a(n); for (auto &i: a) cin >> i; SegmentTree<mono::MonoidAdd<i64>> s(n, [&a](u32 i){return a[i];}); long long op, x, y; while (q--) { cin >> op >> x >> y; if (op == 0) s.set(x, a[x] += y); else cout << s.prod(x, y) << '\n'; } }
Traceback (most recent call last): File "/home/runner/.local/lib/python3.10/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 "/home/runner/.local/lib/python3.10/site-packages/onlinejudge_verify/languages/cplusplus.py", line 187, in bundle bundler.update(path) File "/home/runner/.local/lib/python3.10/site-packages/onlinejudge_verify/languages/cplusplus_bundle.py", line 401, in update self.update(self._resolve(pathlib.Path(included), included_from=path)) File "/home/runner/.local/lib/python3.10/site-packages/onlinejudge_verify/languages/cplusplus_bundle.py", line 401, in update self.update(self._resolve(pathlib.Path(included), included_from=path)) File "/home/runner/.local/lib/python3.10/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: lib/internal.hpp: line 4: #pragma once found in a non-first line