joitter2.cpp: In function 'int main()':
joitter2.cpp:29:36: error: invalid initialization of reference of type 'std::unordered_set<long long int>&' from expression of type '__gnu_cxx::__alloc_traits<std::allocator<std::set<long long int> >, std::set<long long int> >::value_type' {aka 'std::set<long long int>'}
29 | if (not isin(a, AB[root[b]])) {
| ^
joitter2.cpp:5:43: note: in passing argument 2 of 'bool isin(long long int, std::unordered_set<long long int>&)'
5 | inline bool isin(ll a, unordered_set<ll>& s) {
| ~~~~~~~~~~~~~~~~~~~^
joitter2.cpp:33:37: error: invalid initialization of reference of type 'std::unordered_set<long long int>&' from expression of type '__gnu_cxx::__alloc_traits<std::allocator<std::set<long long int> >, std::set<long long int> >::value_type' {aka 'std::set<long long int>'}
33 | if (isin(root[a], f[root[b]]) and root[a] != root[b]) tomerge.push(make_pair(root[a], root[b]));
| ^
joitter2.cpp:5:43: note: in passing argument 2 of 'bool isin(long long int, std::unordered_set<long long int>&)'
5 | inline bool isin(ll a, unordered_set<ll>& s) {
| ~~~~~~~~~~~~~~~~~~~^
joitter2.cpp:54:39: error: invalid initialization of reference of type 'std::unordered_set<long long int>&' from expression of type '__gnu_cxx::__alloc_traits<std::allocator<std::set<long long int> >, std::set<long long int> >::value_type' {aka 'std::set<long long int>'}
54 | if (isin(cura, f[elem])) tomerge.push(make_pair(elem, cura));
| ^
joitter2.cpp:5:43: note: in passing argument 2 of 'bool isin(long long int, std::unordered_set<long long int>&)'
5 | inline bool isin(ll a, unordered_set<ll>& s) {
| ~~~~~~~~~~~~~~~~~~~^
joitter2.cpp:61:39: error: invalid initialization of reference of type 'std::unordered_set<long long int>&' from expression of type '__gnu_cxx::__alloc_traits<std::allocator<std::set<long long int> >, std::set<long long int> >::value_type' {aka 'std::set<long long int>'}
61 | if (isin(elem, f[cura])) tomerge.push(make_pair(elem, cura));
| ^
joitter2.cpp:5:43: note: in passing argument 2 of 'bool isin(long long int, std::unordered_set<long long int>&)'
5 | inline bool isin(ll a, unordered_set<ll>& s) {
| ~~~~~~~~~~~~~~~~~~~^