fork download
  1. #include <set>
  2. #include <iostream>
  3.  
  4. std::ostream& operator<<(std::ostream& os, const std::set<int>& myset) {
  5. for (std::set<int>::const_iterator it = myset.begin(); it != myset.end(); ++it) {
  6. // ^^
  7. os << *it;
  8. }
  9. return os;
  10. }
  11.  
  12. int main () {}
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
Standard output is empty