insects.cpp: In function 'int min_cardinality(int)':
insects.cpp:40:24: warning: comparison of integer expressions of different signedness: 'std::set<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
40 | if(S.size()==k*mid) break;
| ~~~~~~~~^~~~~~~
insects.cpp:42:20: warning: comparison of integer expressions of different signedness: 'std::set<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
42 | if(S.size()==k*mid) break;
| ~~~~~~~~^~~~~~~
insects.cpp:47:20: warning: comparison of integer expressions of different signedness: 'std::set<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
47 | if(S.size()==k*mid) {
| ~~~~~~~~^~~~~~~
insects.cpp:53:28: warning: comparison of integer expressions of different signedness: 'std::set<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
53 | if(S.size()==k*mid) break;
| ~~~~~~~~^~~~~~~
insects.cpp:62:32: warning: comparison of integer expressions of different signedness: 'std::set<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
62 | if(S.size()==k*mid) break;
| ~~~~~~~~^~~~~~~
insects.cpp:64:28: warning: comparison of integer expressions of different signedness: 'std::set<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
64 | if(S.size()==k*mid) break;
| ~~~~~~~~^~~~~~~
insects.cpp:95:32: warning: comparison of integer expressions of different signedness: 'std::set<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
95 | if(S.size()==k*mid) break;
| ~~~~~~~~^~~~~~~
insects.cpp:97:28: warning: comparison of integer expressions of different signedness: 'std::set<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
97 | if(S.size()==k*mid) break;
| ~~~~~~~~^~~~~~~