Problem inversions
User kxd
Submission Time 2024-03-15 09:35:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

inversions.cpp:36:9: error: ‘tree’ does not name a type; did you mean ‘free’?
36 | typedef tree<int, null_type, greater_equal<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
| ^~~~
| free
inversions.cpp:37:9: error: ‘tree’ does not name a type; did you mean ‘free’?
37 | typedef tree<int, null_type, less_equal<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_multiset;
| ^~~~
| free
inversions.cpp: In function ‘int main()’:
inversions.cpp:51:9: error: ‘ordered_set’ was not declared in this scope
51 | ordered_set s;
| ^~~~~~~~~~~
inversions.cpp:55:13: error: ‘s’ was not declared in this scope
55 | s.insert(a);
| ^