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