This documentation is automatically generated by online-judge-tools/verification-helper
#include "cpp/interval/interval_union.hpp"#pragma once
#include "template/small_template.hpp"
/**
* @brief 区間の和集合
*
* @tparam T
* @param v [l, r] 途中でソートされる
* @return vector<pair<T, T>> [l, r]
*/
template <class T>
vector<pair<T, T>> interval_union_inclusive(vector<pair<T, T>> &v) {
sort(v.begin(), v.end());
vector<pair<T, T>> ret;
for (auto &&[l, r] : v) {
if (ret.empty() || ret.back().second < l) {
ret.emplace_back(l, r);
} else if (ret.back().second < r) {
ret.back().second = r;
}
}
return ret;
}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 260, in _resolve
raise BundleErrorAt(path, -1, "no such header")
onlinejudge_verify.languages.cplusplus_bundle.BundleErrorAt: template/small_template.hpp: line -1: no such header