insects.cpp: In function 'int min_cardinality(int)':
insects.cpp:29:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | for (int i = 0; i < src.size(); i++) {
| ~~^~~~~~~~~~~~
insects.cpp:43:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | for (int i = 0; i < rem.size(); i++) {
| ~~^~~~~~~~~~~~
insects.cpp:10:6: warning: unused variable 'min_card' [-Wunused-variable]
10 | int min_card = N;
| ^~~~~~~~
insects.cpp:18:6: warning: 'max_card' may be used uninitialized in this function [-Wmaybe-uninitialized]
18 | int max_card;
| ^~~~~~~~