mushrooms.cpp: In function 'int count_mushrooms(int)':
mushrooms.cpp:47:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
47 | if(a.size() + b.size() == n) return a.size();
| ~~~~~~~~~~~~~~~~~~~~^~~~
mushrooms.cpp:50:14: 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() >= cnt) {
| ~~~~~~~~~^~~~~~
mushrooms.cpp:55:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | for(int i = 1; i < a.size(); i++) {
| ~~^~~~~~~~~~
mushrooms.cpp:68:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
68 | for(int i = 1; i < b.size(); i++) {
| ~~^~~~~~~~~~
mushrooms.cpp:11:9: warning: unused variable 'x' [-Wunused-variable]
11 | int x, y; bool z;
| ^
mushrooms.cpp:11:12: warning: unused variable 'y' [-Wunused-variable]
11 | int x, y; bool z;
| ^
mushrooms.cpp:11:20: warning: unused variable 'z' [-Wunused-variable]
11 | int x, y; bool z;
| ^