insects.cpp: In function 'int min_cardinality(int)':
insects.cpp:33:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | for (int i = 0; i < src.size(); i++) {
| ~~^~~~~~~~~~~~
insects.cpp:47:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
47 | if (num_sets == src.size()) {
| ~~~~~~~~~^~~~~~~~~~~~~
insects.cpp:52:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
52 | for (int i = 0; i < tmpvec1.size(); i++) {
| ~~^~~~~~~~~~~~~~~~
insects.cpp:62:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
62 | for (int i = 0; i < distinct.size(); i++) {
| ~~^~~~~~~~~~~~~~~~~
insects.cpp:76:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
76 | for (int i = 0; i < pos2.size(); i++) {
| ~~^~~~~~~~~~~~~
insects.cpp:80:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
80 | for (int i = 0; i < tmpvec1.size(); i++) {
| ~~^~~~~~~~~~~~~~~~
insects.cpp:89:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
89 | for (int i = 0; i < pos1.size(); i++) {
| ~~^~~~~~~~~~~~~
insects.cpp:93:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
93 | for (int i = 0; i < pos2.size(); i++) {
| ~~^~~~~~~~~~~~~
insects.cpp:17:6: warning: variable 'prev_num_sets' set but not used [-Wunused-but-set-variable]
17 | int prev_num_sets;
| ^~~~~~~~~~~~~
insects.cpp:18:7: warning: variable 'first' set but not used [-Wunused-but-set-variable]
18 | bool first = true;
| ^~~~~