This documentation is automatically generated by online-judge-tools/verification-helper
View the Project on GitHub EarthMessenger/icpc-snippet
#include "lib/monoid/monoid_add.hpp"
#pragma once #include "lib/internal.hpp" #include "lib/monoid/monoid_trait.hpp" namespace mono { template <typename T> struct MonoidAdd : MonoidTrait<T, true, ftf<std::plus<T>, const T, const T>> {}; template <typename T1, typename T2> struct MonoidAdd<std::pair<T1, T2>> { using S = std::pair<T1, T2>; static constexpr S op(const S &x, const S &y) { return S{x.first + y.first, x.second + y.second}; } static constexpr const S un() { return S{T1(), T2()}; } static constexpr S iv(const S &x) { return S{-x.first, -x.second}; } static constexpr S pw(const S &x, u64 y) { return S{x.first * y, x.second * y}; } static constexpr bool cm = true; }; } // namespace mono
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 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