advisor.cpp: In function 'void ComputeAdvice(int*, int, int, int)':
advisor.cpp:37:16: error: no match for 'operator[]' (operand types are 'std::vector<bool>' and 'std::pair<int, int>')
37 | has[b] = false;
| ^
In file included from /usr/include/c++/10/vector:68,
from /usr/include/c++/10/functional:62,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from advisor.cpp:2:
/usr/include/c++/10/bits/stl_bvector.h:909:7: note: candidate: 'std::vector<bool, _Alloc>::reference std::vector<bool, _Alloc>::operator[](std::vector<bool, _Alloc>::size_type) [with _Alloc = std::allocator<bool>; std::vector<bool, _Alloc>::reference = std::vector<bool>::reference; std::vector<bool, _Alloc>::size_type = long unsigned int]'
909 | operator[](size_type __n)
| ^~~~~~~~
/usr/include/c++/10/bits/stl_bvector.h:909:28: note: no known conversion for argument 1 from 'std::pair<int, int>' to 'std::vector<bool>::size_type' {aka 'long unsigned int'}
909 | operator[](size_type __n)
| ~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_bvector.h:916:7: note: candidate: 'std::vector<bool, _Alloc>::const_reference std::vector<bool, _Alloc>::operator[](std::vector<bool, _Alloc>::size_type) const [with _Alloc = std::allocator<bool>; std::vector<bool, _Alloc>::const_reference = bool; std::vector<bool, _Alloc>::size_type = long unsigned int]'
916 | operator[](size_type __n) const
| ^~~~~~~~
/usr/include/c++/10/bits/stl_bvector.h:916:28: note: no known conversion for argument 1 from 'std::pair<int, int>' to 'std::vector<bool>::size_type' {aka 'long unsigned int'}
916 | operator[](size_type __n) const
| ~~~~~~~~~~^~~