Main.cpp: In function 'std::vector<bool> find_positive()':
Main.cpp:97:47: error: no match for 'operator=' (operand types are 'std::vector<bool>' and 'int')
97 | ans = mid;
| ^~~
In file included from /usr/include/c++/11/vector:68,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from Main.cpp:1:
/usr/include/c++/11/bits/stl_bvector.h:736:7: note: candidate: 'std::vector<bool, _Alloc>& std::vector<bool, _Alloc>::operator=(const std::vector<bool, _Alloc>&) [with _Alloc = std::allocator<bool>]'
736 | operator=(const vector& __x)
| ^~~~~~~~
/usr/include/c++/11/bits/stl_bvector.h:736:31: note: no known conversion for argument 1 from 'int' to 'const std::vector<bool>&'
736 | operator=(const vector& __x)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/stl_bvector.h:767:7: note: candidate: 'std::vector<bool, _Alloc>& std::vector<bool, _Alloc>::operator=(std::vector<bool, _Alloc>&&) [with _Alloc = std::allocator<bool>]'
767 | operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move())
| ^~~~~~~~
/usr/include/c++/11/bits/stl_bvector.h:767:26: note: no known conversion for argument 1 from 'int' to 'std::vector<bool>&&'
767 | operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move())
| ~~~~~~~~~^~~
/usr/include/c++/11/bits/stl_bvector.h:792:7: note: candidate: 'std::vector<bool, _Alloc>& std::vector<bool, _Alloc>::operator=(std::initializer_list<bool>) [with _Alloc = std::allocator<bool>]'
792 | operator=(initializer_list<bool> __l)
| ^~~~~~~~
/usr/include/c++/11/bits/stl_bvector.h:792:40: note: no known conversion for argument 1 from 'int' to 'std::initializer_list<bool>'
792 | operator=(initializer_list<bool> __l)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~
Main.cpp: In function 'bool test_students(std::vector<bool>)':
Main.cpp:24:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | scanf(" %c", &answer);
| ~~~~~^~~~~~~~~~~~~~~~
Main.cpp: In function 'int main()':
Main.cpp:117:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
117 | scanf("%d %lf %d", &N, &P, &T);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:133:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
133 | scanf(" %c", &verdict);
| ~~~~~^~~~~~~~~~~~~~~~~