fork download
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. int main()
  5. {
  6. std::vector<int> v(10);
  7. v[0] = 42;
  8.  
  9. std::vector<int>::iterator it;
  10. it = v.begin();
  11.  
  12. std::cout << *it << std::endl;
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
42