insects.cpp: In function 'void check(int, int, int&, int&, std::vector<bool>&)':
insects.cpp:15:26: error: 'n' was not declared in this scope
15 | for (int i = 1; i <= n; i++) {
| ^
insects.cpp:31:20: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
31 | if (poz.size() == mid * d) { /// e plin
| ~~~~~~~~~~~^~~~~~~~~~
insects.cpp:37:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
37 | else if (poz.size() < mid * d) { /// nu e plin
| ~~~~~~~~~~~^~~~~~~~~
insects.cpp:41:30: error: 'n' was not declared in this scope
41 | for (int i = 1; i <= n; i++) {
| ^
insects.cpp:45:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | while (idx < poz.size() && poz[idx] < i) {
| ~~~~^~~~~~~~~~~~
insects.cpp: In function 'int min_cardinality(int)':
insects.cpp:63:30: error: 'n' was not declared in this scope
63 | for (int i = 1; i <= n; i++) {
| ^
insects.cpp:81:30: error: 'n' was not declared in this scope
81 | for (int i = 1; i <= n; i++) {
| ^