avoid.cpp: In function 'std::pair<int, int> scout(int, int)':
avoid.cpp:101:34: error: 'b2' was not declared in this scope; did you mean 'b1'?
101 | if ((j>>b1&1)==0 && (j>>b2&1)==0) vv.push_back(j);
| ^~
| b1
avoid.cpp:119:23: error: no matching function for call to 'find(std::vector<std::pair<int, int> >::iterator, std::vector<std::pair<int, int> >::iterator, <brace-enclosed initializer list>)'
119 | if (v[10+find(pb.begin(), pb.end(), {bits[0], bits[i]})-pb.begin()]){
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
from avoid.cpp:3:
/usr/include/c++/13/bits/stl_algo.h:3889:5: note: candidate: 'template<class _IIter, class _Tp> constexpr _IIter std::find(_IIter, _IIter, const _Tp&)'
3889 | find(_InputIterator __first, _InputIterator __last,
| ^~~~
/usr/include/c++/13/bits/stl_algo.h:3889:5: note: template argument deduction/substitution failed:
avoid.cpp:119:23: note: couldn't deduce template parameter '_Tp'
119 | if (v[10+find(pb.begin(), pb.end(), {bits[0], bits[i]})-pb.begin()]){
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13/algorithm:73:
/usr/include/c++/13/pstl/glue_algorithm_defs.h:60:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::find(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
60 | find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
| ^~~~
/usr/include/c++/13/pstl/glue_algorithm_defs.h:60:1: note: template argument deduction/substitution failed:
avoid.cpp:119:23: note: candidate expects 4 arguments, 3 provided
119 | if (v[10+find(pb.begin(), pb.end(), {bits[0], bits[i]})-pb.begin()]){
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13/iterator:66,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:54:
/usr/include/c++/13/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::find(istreambuf_iterator<_CharT, char_traits<_CharT> >, istreambuf_iterator<_CharT, char_traits<_CharT> >, const _CharT2&)'
435 | find(istreambuf_iterator<_CharT> __first,
| ^~~~
/usr/include/c++/13/bits/streambuf_iterator.h:435:5: note: template argument deduction/substitution failed:
avoid.cpp:119:23: note: '__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > >' is not derived from 'std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >'
119 | if (v[10+find(pb.begin(), pb.end(), {bits[0], bits[i]})-pb.begin()]){
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~