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

Compile Error

optimalsubseq.cpp:8:1: error: ‘ordered_set’ does not name a type
8 | ordered_set<int> S;
| ^~~~~~~~~~~
optimalsubseq.cpp: In function ‘int main()’:
optimalsubseq.cpp:26:2: error: ‘priority_queue’ was not declared in this scope
26 | priority_queue<pair<int,int>> pq;
| ^~~~~~~~~~~~~~
optimalsubseq.cpp:3:1: note: ‘std::priority_queue’ is defined in header ‘<queue>’; did you forget to ‘#include <queue>’?
2 | #include <ext/pb_ds/assoc_container.hpp>
+++ |+#include <queue>
3 | // Including tree_order_statistics_node_update
optimalsubseq.cpp:26:29: error: expected primary-expression before ‘>’ token
26 | priority_queue<pair<int,int>> pq;
| ^~
optimalsubseq.cpp:26:32: error: ‘pq’ was not declared in this scope
26 | priority_queue<pair<int,int>> pq;
| ^~
optimalsubseq.