fork download
  1. auto it;
  2. bool was_erased;
  3. do {
  4. it = list.begin();
  5. report(it);
  6. was_erased = ???;
  7. }while(was_erased);
  8. for(;;) {
  9. auto it2 = it;
  10. ++it2;
  11. if (it2 == end())
  12. break;
  13. report(it);
  14. was_erased = ???;
  15. if (was_erased == false)
  16. it = it2;
  17. }
  18.  
  19.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1: error: ISO C++ forbids declaration of ‘it’ with no type
prog.cpp:1: error: top-level declaration of ‘it’ specifies ‘auto’
prog.cpp:3: error: expected unqualified-id before ‘do’
prog.cpp:7: error: expected unqualified-id before ‘while’
prog.cpp:8: error: expected unqualified-id before ‘for’
prog.cpp:8: error: expected unqualified-id before ‘)’ token
stdout
Standard output is empty