fork download
  1. #include <iostream>
  2. #include <set>
  3. using namespace std;
  4. int main()
  5. {
  6. set<int> s;
  7. s.insert(1);
  8. s.insert(3);
  9. set<int>::iterator it=s.begin();
  10. s.erase(1);
  11. ++it;
  12. return 0;
  13. }
Success #stdin #stdout 0s 2980KB
stdin
Standard input is empty
stdout
Standard output is empty