fork download
#include 
#include 

int main()
{
    typedef std::deque mydeque_t;
    mydeque_t mydeque;
    
    mydeque_t::iterator start = mydeque.begin();
    
    for (int i = 0; i != 1000; ++i)
         mydeque.push_back(i);
    
    for (mydeque_t::iterator myint = start; myint != mydeque.end(); ++myint)
        *myint += 1;
}
Runtime error #stdin #stdout 0.01s 2852KB
stdin
Standard input is empty
stdout

Standard output is empty