Problem doll_noi
User trollSecOps
Submission Time 2024-02-24 10:17:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

doll_noi.cpp: In member function ‘void DSU::union_set(int, int)’:
doll_noi.cpp:47:32: error: ‘swap’ was not declared in this scope
47 | if (size[u] < size[v]) swap(u, v);
| ^~~~
doll_noi.cpp:47:32: note: suggested alternatives:
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from doll_noi.cpp:1:
/usr/include/c++/9/bits/regex.h:2029:5: note: ‘std::__cxx11::swap’
2029 | swap(match_results<_Bi_iter, _Alloc>& __lhs,
| ^~~~
In file included from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from doll_noi.cpp:1:
/u