secret.cpp:6:1: error: 'vector' does not name a type
6 | vector<int> v[1005];
| ^~~~~~
secret.cpp: In function 'void rek(int, int, int)':
secret.cpp:12:10: error: 'max' was not declared in this scope; did you mean 'maxid'?
12 | maxid = max(maxid, d);
| ^~~
| maxid
secret.cpp:14:3: error: 'v' was not declared in this scope
14 | v[d].push_back(l);
| ^
secret.cpp:30:2: error: 'v' was not declared in this scope
30 | v[d].push_back(mid);
| ^
secret.cpp: In function 'int Query(int, int)':
secret.cpp:44:23: error: 'v' was not declared in this scope
44 | for (int j = 0; j < v[i].size(); j++) {
| ^