This documentation is automatically generated by competitive-verifier/competitive-verifier
// competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/problems/DSL_1_A
#include "tree/union_find.hpp"
#include <iostream>
int main(void) {
int n, q;
std::cin >> n >> q;
union_find uf(n);
while (q--) {
int com, x, y;
std::cin >> com >> x >> y;
if (com == 0) uf.unite(x, y);
else std::cout << uf.same(x, y) << '\n';
}
return 0;
}
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: tree/union_find.hpp: line -1: no such header
| Env | Name | Status | Elapsed | Memory |
|---|---|---|---|---|
| g++ | 00_small_00 |
|
3 ms | 3 MB |
| g++ | 00_small_01 |
|
2 ms | 4 MB |
| g++ | 01_rand_00 |
|
2 ms | 3 MB |
| g++ | 01_rand_01 |
|
2 ms | 4 MB |
| g++ | 01_rand_02 |
|
2 ms | 3 MB |
| g++ | 01_rand_03 |
|
2 ms | 3 MB |
| g++ | 01_rand_04 |
|
3 ms | 4 MB |
| g++ | 01_rand_05 |
|
3 ms | 3 MB |
| g++ | 02_linear_00 |
|
2 ms | 4 MB |
| g++ | 02_linear_01 |
|
5 ms | 4 MB |
| g++ | 02_linear_02 |
|
15 ms | 4 MB |
| g++ | 02_linear_03 |
|
29 ms | 4 MB |
| g++ | 03_grid_00 |
|
2 ms | 4 MB |
| g++ | 03_grid_01 |
|
2 ms | 4 MB |
| g++ | 03_grid_02 |
|
2 ms | 3 MB |
| g++ | 03_grid_03 |
|
2 ms | 3 MB |
| g++ | 03_grid_04 |
|
2 ms | 3 MB |
| g++ | 03_grid_05 |
|
2 ms | 4 MB |
| g++ | 03_grid_06 |
|
3 ms | 3 MB |
| g++ | 03_grid_07 |
|
3 ms | 4 MB |
| g++ | 03_grid_08 |
|
3 ms | 4 MB |
| g++ | 04_critical_00 |
|
27 ms | 3 MB |
| g++ | 04_critical_01 |
|
28 ms | 3 MB |
| g++ | 05_groups_00 |
|
37 ms | 4 MB |
| g++ | 05_groups_01 |
|
37 ms | 4 MB |
| g++ | 05_groups_02 |
|
37 ms | 4 MB |
| g++ | 05_groups_03 |
|
37 ms | 3 MB |
| g++ | 05_groups_04 |
|
37 ms | 3 MB |
| g++ | 06_randmax_00 |
|
5 ms | 4 MB |
| g++ | 06_randmax_01 |
|
61 ms | 4 MB |
| g++ | 06_randmax_02 |
|
83 ms | 4 MB |
| g++ | 06_randmax_03 |
|
118 ms | 4 MB |