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