This documentation is automatically generated by competitive-verifier/competitive-verifier
#include "daylight/string/mp.hpp"#include "daylight/base.hpp"
template<typename T>
struct MP {
vi a;
int n;
T s;
MP(T s): s(s) {
init();
}
void init() {
n = SZ(s);
a = vi(n + 1);
a[0] = -1;
int j = -1;
REP(i, n) {
while(j != -1 && s[j] != s[i]) j = a[j];
j++;
a[i + 1] = j;
}
}
int operator[](int i) {
return a[i];
}
};
Traceback (most recent call last):
File "/home/runner/.local/lib/python3.10/site-packages/competitive_verifier/oj_resolve/resolver.py", line 181, in resolve
bundled_code = language.bundle(path, basedir=basedir)
File "/home/runner/.local/lib/python3.10/site-packages/competitive_verifier/oj/verify/languages/cplusplus.py", line 252, in bundle
bundler.update(path)
File "/home/runner/.local/lib/python3.10/site-packages/competitive_verifier/oj/verify/languages/cplusplus_bundle.py", line 482, in update
self.update(
File "/home/runner/.local/lib/python3.10/site-packages/competitive_verifier/oj/verify/languages/cplusplus_bundle.py", line 477, in update
raise BundleErrorAt(
competitive_verifier.oj.verify.languages.cplusplus_bundle.BundleErrorAt: daylight/base.hpp: line 103: unable to process #include in #if / #ifdef / #ifndef other than include guards