insects.cpp: In function 'int min_cardinality(int)':
insects.cpp:18:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for (int i = 0; i < vec1.size(); i++) {
| ~~^~~~~~~~~~~~~
insects.cpp:35:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for (int i = 0; i < distinct.size(); i++) {
| ~~^~~~~~~~~~~~~~~~~
insects.cpp:50:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | for (int i = 0; i < src.size(); i++) {
| ~~^~~~~~~~~~~~
insects.cpp:61:23: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
61 | if (distinct.size() != num_sets) {
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~
insects.cpp:10:6: warning: unused variable 'min_card' [-Wunused-variable]
10 | int min_card = N;
| ^~~~~~~~