Problem pokemonmaster
User otarius
Submission Time 2024-07-12 03:52:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pokemonmaster.cpp:18:21: error: ‘tree’ does not name a type; did you mean ‘free’?
18 | #define ordered_set tree<pair<int, int>, null_type,less<pair<int, int>>, rb_tree_tag,tree_order_statistics_node_update>
| ^~~~
pokemonmaster.cpp:31:1: note: in expansion of macro ‘ordered_set’
31 | ordered_set fen[maxN];
| ^~~~~~~~~~~
pokemonmaster.cpp: In function ‘void update(int, int)’:
pokemonmaster.cpp:56:36: error: ‘fen’ was not declared in this scope
56 | for ( ; x <= n; x += (x & -x)) fen[x].insert({val, ++tim});
| ^~~
pokemonmaster.cpp: In function ‘void erase(int, int)’:
pokemonmaster.cpp:59:36: error: ‘fen’ was not declared in this scope
59 | for ( ; x <= n; x += (x & -x)) fen[x].erase(fen[x].lower_bound({val, 0}));
| ^~~
pokemonmaster.cpp: In function ‘int query(int, int)’:
pokemonma