answer.code: In function ‘int min_cardinality(int)’:
answer.code:6:3: error: ‘memset’ was not declared in this scope
6 | memset(vis, true, sizeof vis);
| ^~~~~~
answer.code:2:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
1 | #include "insects.h"
+++ |+#include <cstring>
2 |
answer.code:8:8: error: ‘vector’ is not a member of ‘std’
8 | std::vector<int> apps;
| ^~~~~~
answer.code:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include "insects.h"
+++ |+#include <vector>
2 |
answer.code:8:15: error: expected primary-expression before ‘int’
8 | std::vector<int> apps;
| ^~~
answer.code:32:11: error: ‘apps’ was not declared in this scope
32 | apps.push_back(count);
| ^~~~
answer.code:36:8: error: ‘apps’ was not declared in this scope
36 | sort(apps.begin(), apps.end());
| ^~~~
answer.code:36:3: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
36 | sort(apps.begin(), apps.end());
| ^~~~
| short