Problem | citymapping |
---|---|
User | Sandarach151 |
Submission Time | 2022-12-24 21:39:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
citymapping.cpp: In function ‘void unite(int, int, int*, int*)’:
citymapping.cpp:19:3: error: ‘swap’ was not declared in this scope
19 | swap(a, b);
| ^~~~
citymapping.cpp:19:3: 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 citymapping.cpp:2:
/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 citymapping.cpp:2:
/usr/include/c++/9/bits/move.h:182:5: note: ‘std::sw