insects.cpp: In function 'int query()':
insects.cpp:7:10: error: 'use_machine' was not declared in this scope
7 | return use_machine();
| ^~~~~~~~~~~
insects.cpp: At global scope:
insects.cpp:10:1: error: 'vi' does not name a type
10 | vi perm;
| ^~
insects.cpp: In function 'void add(int)':
insects.cpp:15:15: error: 'perm' was not declared in this scope
15 | move_inside(perm[x]);
| ^~~~
insects.cpp:15:3: error: 'move_inside' was not declared in this scope
15 | move_inside(perm[x]);
| ^~~~~~~~~~~
insects.cpp: In function 'void rem(int)':
insects.cpp:21:16: error: 'perm' was not declared in this scope
21 | move_outside(perm[x]);
| ^~~~
insects.cpp:21:3: error: 'move_outside' was not declared in this scope
21 | move_outside(perm[x]);
| ^~~~~~~~~~~~
insects.cpp: In function 'int min_cardinality(int)':
insects.cpp:25:3: error: 'perm' was not declared in this scope
25 | perm.resize(n);
| ^~~~
insects.cpp:38:3: error: 'vb' was not declared in this scope
38 | vb never(n, false), always(n, false);
| ^~
insects.cpp:43:11: error: 'never' was not declared in this scope
43 | if (never[i]) continue;
| ^~~~~
insects.cpp:47:19: warning: comparison of integer expressions of different signedness: 'std::set<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
47 | if (in.size() == mid * types) {
| ~~~~~~~~~~^~~~~~~~~~~~~~
insects.cpp:49:25: error: 'always' was not declared in this scope
49 | for (auto i : in) always[i] = true;
| ^~~~~~
insects.cpp:52:46: error: 'never' was not declared in this scope
52 | rep(i,0,n) if (in.find(i) == in.end()) never[i] = true;
| ^~~~~
insects.cpp:53:23: error: 'always' was not declared in this scope
53 | rep(i,0,n) if (!always[i]) rem(i);
| ^~~~~~