mushrooms.cpp: In function 'int count_mushrooms(int)':
mushrooms.cpp:8:43: warning: comparison of integer expressions of different signedness: 'const long unsigned int' and 'int' [-Wsign-compare]
8 | while(last < n && max(a.size(),b.size()) < n){
| ~~~~~~~~~~~~~~~~~~~~~~~^~~
mushrooms.cpp:20:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | while(cnt < a.size() && last < n){
| ~~~~^~~~~~~~~~
mushrooms.cpp:34:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | while(cnt < b.size() && last < n){
| ~~~~^~~~~~~~~~
mushrooms.cpp:15:13: warning: unused variable 'cb' [-Wunused-variable]
15 | int ca = 0,cb = 0;
| ^~