Problem | railroad |
---|---|
User | Sans12345 |
Submission Time | 2024-02-04 19:51:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
railroad.cpp: In constructor ‘UFDS::UFDS(int)’:
railroad.cpp:11:9: error: ‘numgrp’ was not declared in this scope
11 | numgrp = m;
| ^~~~~~
railroad.cpp: In member function ‘void UFDS::unify(ll, ll)’:
railroad.cpp:17:13: error: ‘findset’ was not declared in this scope; did you mean ‘find’?
17 | i = findset(i);
| ^~~~~~~
| find
railroad.cpp:20:12: error: ‘sz’ was not declared in this scope
20 | if(sz[i] > sz[j]) swap(i,j);
| ^~
railroad.cpp:21:9: error: ‘numgrp’ was not declared in this scope
21 | numgrp -= 1;
| ^~~~~~
railroad.cpp:23:9: error: ‘sz’ was not declared in this scope
23 | sz[j] += sz[i];
| ^~