fork download
  1. #include <iostream>
  2. #include <set>
  3. #include <iterator>
  4. using namespace std;
  5. int main(){
  6. set<int,std::greater<int>> date {2, 3, 5, 4};
  7. ostream_iterator<int> out_it (cout, " ");
  8. copy (date.begin(), date.end(), out_it );
  9. return 0;
  10. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
5 4 3 2