secret.cpp:7:1: error: 'vector' does not name a type
7 | vector<int> v[1005];
| ^~~~~~
secret.cpp: In function 'void rek(int, int, int)':
secret.cpp:14:10: error: 'max' was not declared in this scope; did you mean 'std::max'?
14 | maxid = max(maxid, d);
| ^~~
| std::max
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from secret.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: 'std::max' declared here
3486 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
secret.cpp:16:3: error: 'v' was not declared in this scope
16 | v[d].push_back(l);
| ^
secret.cpp:36:2: error: 'v' was not declared in this scope
36 | v[d].push_back(mid);
| ^
secret.cpp: In function 'int Query(int, int)':
secret.cpp:54:23: error: 'v' was not declared in this scope
54 | for (int j = 0; j < v[i].size(); j++) {
| ^