insects.cpp:5:1: error: 'vector' does not name a type
5 | vector<bool> cur(2000, false);
| ^~~~~~
insects.cpp: In function 'void trash()':
insects.cpp:9:9: error: 'cur' was not declared in this scope
9 | if (cur[i]) {
| ^~~
insects.cpp:10:7: error: 'enleve' was not declared in this scope
10 | enleve(i);
| ^~~~~~
insects.cpp: In function 'void enleve(int)':
insects.cpp:17:3: error: 'cur' was not declared in this scope
17 | cur[k] = false;
| ^~~
insects.cpp: In function 'void ajoute(int)':
insects.cpp:22:3: error: 'cur' was not declared in this scope
22 | cur[k] = true;
| ^~~
insects.cpp: In function 'int nbElem()':
insects.cpp:28:9: error: 'cur' was not declared in this scope
28 | if (cur[i]) {
| ^~~