fork download
  1. #include <iostream>
  2. #include <set>
  3.  
  4. int main()
  5. {
  6. std::set<int> v = {1, 1, 2, 3, 3, 4, 4, 3, 3};
  7. for(auto const& e : v)
  8. std::cout << e << " ";
  9.  
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
1 2 3 4