insects.cpp: In function 'int min_cardinality(int)':
insects.cpp:38:25: error: expected '}' before 'else'
38 | else ++c;
| ^~~~
insects.cpp:32:53: note: to match this '{'
32 | for (int i:ord)if (!got[i]&&!ban[i]){
| ^
insects.cpp:40:21: error: 'c' was not declared in this scope
40 | if (c==uq*mid)low=mid;
| ^
insects.cpp:40:27: error: 'mid' was not declared in this scope
40 | if (c==uq*mid)low=mid;
| ^~~
insects.cpp:43:44: error: 'added' was not declared in this scope
43 | for (int i:ord)if (added[i])move_outside(i), got[i]=0;
| ^~~~~
insects.cpp:44:44: error: 'toomuch' was not declared in this scope
44 | for (int i:ord)if (toomuch[i])ban[i]=1;
| ^~~~~~~
insects.cpp:46:9: warning: no return statement in function returning non-void [-Wreturn-type]
46 | }
| ^
insects.cpp: At global scope:
insects.cpp:47:9: error: expected unqualified-id before 'return'
47 | return low;
| ^~~~~~
insects.cpp:48:1: error: expected declaration before '}' token
48 | }
| ^