plants.cpp: In function 'void init(int, std::vector<int>)':
plants.cpp:6:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
6 | for(int i = 0; i < r.size(); i++){
| ~~^~~~~~~~~~
plants.cpp: In function 'int compare_plants(int, int)':
plants.cpp:20:8: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | if(i == plants.size()) i = 0;
| ~~^~~~~~~~~~~~~~~~
plants.cpp:30:8: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | if(i == plants.size()) i = 0;
| ~~^~~~~~~~~~~~~~~~