fork download
  1. // C++ program to demonstrate the
  2. // ordered set in GNU C++
  3. #include <iostream>
  4. using namespace std;
  5.  
  6. // Header files, namespaces,
  7. // macros as defined above
  8. #include <ext/pb_ds/assoc_container.hpp>
  9. #include <ext/pb_ds/tree_policy.hpp>
  10. using namespace __gnu_pbds;
  11.  
  12. #define ordered_set tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update>
  13.  
  14. int main() {
  15. // your code goes here
  16. ordered_set t;
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
Standard output is empty