mushrooms.cpp: In function 'int count_mushrooms(int)':
mushrooms.cpp:28:22: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
28 | if (a.size() == aim || b.size() == aim) break;
| ~~~~~~~~~^~~~~~
mushrooms.cpp:28:41: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
28 | if (a.size() == aim || b.size() == aim) break;
| ~~~~~~~~~^~~~~~
mushrooms.cpp:34:39: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
34 | vector<int> &inter = a.size() == aim ? a : b;
| ~~~~~~~~~^~~~~~
mushrooms.cpp:43:22: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
43 | if (a.size() == aim) {
| ~~~~~~~~~^~~~~~
mushrooms.cpp:50:18: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
50 | if (a.size() == aim) {
| ~~~~~~~~~^~~~~~
mushrooms.cpp:32:14: warning: 'last' may be used uninitialized in this function [-Wmaybe-uninitialized]
32 | for (int i = last+1; i < n; i += aim-1)
| ^