Problem optimalsubseq
User Tyx2019
Submission Time 2023-04-19 13:45:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

optimalsubseq.cpp:9:1: error: ‘ordered_set’ does not name a type
9 | ordered_set<int> S;
| ^~~~~~~~~~~
optimalsubseq.cpp: In function ‘int main()’:
optimalsubseq.cpp:36:9: error: ‘S’ was not declared in this scope
36 | while(S.size()<K){
| ^
optimalsubseq.cpp:42:16: error: ‘S’ was not declared in this scope
42 | ans[id]= A[*(S.find_by_order(X-1))];
| ^