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

Compile Error

inversions.cpp:35:9: error: ‘tree’ does not name a type; did you mean ‘free’?
35 | typedef tree<int, null_type, greater_equal<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
| ^~~~
| free
inversions.cpp:36:9: error: ‘tree’ does not name a type; did you mean ‘free’?
36 | 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:50:9: error: ‘ordered_set’ was not declared in this scope
50 | ordered_set s;
| ^~~~~~~~~~~
inversions.cpp:52:17: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘long long int [200005]’)
52 | cin >> a;
| ~~~ ^~ ~
| | |
|