| Problem | network |
|---|---|
| User | yc |
| Submission Time | 2026-04-25 16:07:20 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
network.cpp: In function ‘void dfs(int, int)’:
network.cpp:11:18: error: no match for ‘operator<’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::unordered_set<int> >, std::unordered_set<int> >::value_type’ {aka ‘std::unordered_set<int>’} and ‘__gnu_cxx::__alloc_traits<std::allocator<std::unordered_set<int> >, std::unordered_set<int> >::value_type’ {aka ‘std::unordered_set<int>’})
11 | if (n3[x]<n3[n1[x][i]]) swap(n3[x],n3[n1[x][i]]);
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from network.cpp:1:
/usr/include/c++/9/bits/regex.h:1048:5: note: candidate: ‘template<class _BiIter> bool std::__cxx11::operator<(const std::__cxx11::sub_match<_BiIter>&, const std::__cxx11::sub_match<_BiIter>&)’
1048 | operator<(const sub_match<_BiIter>& __lhs, c