mushrooms.cpp: In function 'int count_mushrooms(int)':
mushrooms.cpp:26:44: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
26 | for (int i = 1; max(O.size(), Z.size() <= vr; i++){
| ~~~~~~~~~^~~~~
mushrooms.cpp:26:49: error: expected ')' before ';' token
26 | for (int i = 1; max(O.size(), Z.size() <= vr; i++){
| ~ ^
| )
mushrooms.cpp:52:30: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
52 | if (Z.size() < j - i + 1 || j == n - 1) {
| ~~~~~~~~~^~~~~~~~~~~
mushrooms.cpp:83:30: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
83 | if (O.size() < j - i + 1 || j == n - 1) {
| ~~~~~~~~~^~~~~~~~~~~
mushrooms.cpp:91:17: warning: unused variable 'all' [-Wunused-variable]
91 | int all = (Ask.size() + 1) / 2;
| ^~~