mushrooms.cpp: In function 'int count_mushrooms(int)':
mushrooms.cpp:64:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
64 | if (n - unused > V0.size())
| ~~~~~~~~~~~^~~~~~~~~~~
mushrooms.cpp:66:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
66 | for (int i = 0; i < V0.size(); i++)
| ~~^~~~~~~~~~~
mushrooms.cpp:72:25: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
72 | O += V0.size() - (r + 1 >> 1);
| ~~^~~
mushrooms.cpp:87:40: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
87 | return O + L - (use_machine(query) + 1 >> 1);
| ~~~~~~~~~~~~~~~~~~~^~~
mushrooms.cpp:92:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
92 | if (n - unused > V1.size())
| ~~~~~~~~~~~^~~~~~~~~~~
mushrooms.cpp:94:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
94 | for (int i = 0; i < V1.size(); i++)
| ~~^~~~~~~~~~~
mushrooms.cpp:100:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
100 | O += r + 1 >> 1;
| ~~^~~
mushrooms.cpp:115:36: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
115 | return O + (use_machine(query) + 1 >> 1);
| ~~~~~~~~~~~~~~~~~~~^~~