vudu.cpp:27:15: error: 'll' was not declared in this scope
typedef tree <ll, null_type, less_equal <ll> , rb_tree_tag, tree_order_statistics_node_update> ordered_set;
^~
vudu.cpp:27:15: note: suggested alternative: 'all'
typedef tree <ll, null_type, less_equal <ll> , rb_tree_tag, tree_order_statistics_node_update> ordered_set;
^~
all
vudu.cpp:27:42: error: 'll' was not declared in this scope
typedef tree <ll, null_type, less_equal <ll> , rb_tree_tag, tree_order_statistics_node_update> ordered_set;
^~
vudu.cpp:27:42: note: suggested alternative: 'all'
typedef tree <ll, null_type, less_equal <ll> , rb_tree_tag, tree_order_statistics_node_update> ordered_set;
^~
all
vudu.cpp:27:44: error: template argument 1 is invalid
typedef tree <ll, null_type, less_equal <ll> , rb_tree_tag, tree_order_statistics_node_update> ordered_set;
^
vudu.cpp:27:94: error: template argument 1 is invalid
typedef tree <ll, null_type, less_equal <ll> , rb_tree_tag, tree_order_statistics_node_update> ordered_set;
^
vudu.cpp:27:94: error: template argument 3 is invalid
vudu.cpp: In function 'int main()':
vudu.cpp:53:12: error: request for member 'insert' in 'os', which is of non-class type 'ordered_set {aka int}'
os.insert(pr[i - 1] - i * p + p);
^~~~~~
vudu.cpp:55:19: error: request for member 'order_of_key' in 'os', which is of non-class type 'ordered_set {aka int}'
ans += os.order_of_key(pr[i] - i * p + 1);
^~~~~~~~~~~~