This documentation is automatically generated by competitive-verifier/competitive-verifier
#include "lib/graph/floyd_warshall.hpp"#pragma once
#include "graph/matrix_graph.hpp"
#include "template/template.hpp"
/// @brief ワーシャルフロイド法
template <class T>
void floyd_warshall(matrix_graph<T> &g) {
int n = g.size();
for (int i = 0; i < n; ++i) g[i][i] = T();
for (int k = 0; k < n; ++k) {
for (int i = 0; i < n; ++i) {
for (int j = 0; j < n; ++j) { chmin(g[i][j], g[i][k] + g[k][j]); }
}
}
}
Traceback (most recent call last):
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj/resolver.py", line 291, in resolve
bundled_code = language.bundle(path, basedir=basedir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj/verify/languages/cplusplus.py", line 242, in bundle
bundler.update(path)
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj/verify/languages/cplusplus_bundle.py", line 479, in update
self._resolve(pathlib.Path(included), included_from=path)
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj/verify/languages/cplusplus_bundle.py", line 286, in _resolve
raise BundleErrorAt(path, -1, "no such header")
competitive_verifier.oj.verify.languages.cplusplus_bundle.BundleErrorAt: graph/matrix_graph.hpp: line -1: no such header