chameleon.cpp: In function 'void Solve(int)':
chameleon.cpp:36:42: error: no matching function for call to 'std::set<int>::count(<unresolved overloaded function type>)'
36 | if(ad.count(i) || ad.count(hm[i].front)) continue;
| ^
In file included from /usr/include/c++/10/set:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:87,
from chameleon.cpp:2:
/usr/include/c++/10/bits/stl_set.h:748:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::count(const key_type&) const [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::size_type = long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = int]'
748 | count(const key_type& __x) const
| ^~~~~
/usr/include/c++/10/bits/stl_set.h:748:29: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const key_type&' {aka 'const int&'}
748 | count(const key_type& __x) const
| ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_set.h:754:2: note: candidate: 'template<class _Kt> decltype (((const std::set<_Key, _Compare, _Alloc>*)this)->std::set<_Key, _Compare, _Alloc>::_M_t._M_count_tr(__x)) std::set<_Key, _Compare, _Alloc>::count(const _Kt&) const [with _Kt = _Kt; _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>]'
754 | count(const _Kt& __x) const
| ^~~~~
/usr/include/c++/10/bits/stl_set.h:754:2: note: template argument deduction/substitution failed:
chameleon.cpp:36:42: note: couldn't deduce template parameter '_Kt'
36 | if(ad.count(i) || ad.count(hm[i].front)) continue;
| ^
chameleon.cpp:40:37: error: expected ';' before '}' token
40 | ad.insert(hm[i].front())
| ^
| ;
41 | }
| ~
chameleon.cpp:43:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | for(int j=0; j<hm[i].size(); j++){
| ~^~~~~~~~~~~~~
chameleon.cpp:45:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | for(int k=0; k<hm[i].size(); k++){
| ~^~~~~~~~~~~~~