Main.cpp: In function 'std::vector<bool> find_positive()':
Main.cpp:46:37: error: 'min' was not declared in this scope
46 | for (int l = i, r = min(N - 1, i + window_size); l <= r;) {
| ^~~
Main.cpp:46:37: note: suggested alternatives:
In file included from /usr/include/c++/13/string:51,
from Main.cpp:3:
/usr/include/c++/13/bits/stl_algobase.h:281:5: note: 'std::min'
281 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
In file included from /usr/include/c++/13/tuple:44,
from /usr/include/c++/13/bits/uses_allocator_args.h:38,
from /usr/include/c++/13/bits/memory_resource.h:41,
from /usr/include/c++/13/string:58:
/usr/include/c++/13/bits/ranges_util.h:738:29: note: 'std::ranges::min'
738 | inline constexpr __min_fn min{};
| ^~~
Main.cpp: In function 'bool test_students(std::vector<bool>)':
Main.cpp:29:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | scanf(" %c", &answer);
| ~~~~~^~~~~~~~~~~~~~~~
Main.cpp: In function 'int main()':
Main.cpp:71:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
71 | scanf("%d %lf %d", &N, &P, &T);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:87:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
87 | scanf(" %c", &verdict);
| ~~~~~^~~~~~~~~~~~~~~~~