fork download
  1. #include <deque>
  2. #include <iostream>
  3.  
  4. int main()
  5. {
  6. typedef std::deque<int> mydeque_t;
  7. mydeque_t mydeque;
  8.  
  9. mydeque_t::iterator start = mydeque.begin();
  10.  
  11. for (int i = 0; i != 1000; ++i)
  12. mydeque.push_back(i);
  13.  
  14. for (mydeque_t::iterator myint = start; myint != mydeque.end(); ++myint)
  15. *myint += 1;
  16. }
Runtime error #stdin #stdout 0.01s 2852KB
stdin
Standard input is empty
stdout

Standard output is empty