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

Compile Error

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