fork(1) download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. vector<int> l { 10, 20, 30, 40, 50 };
  8. auto it = l.begin() + 2;
  9. cout << *it;
  10. return 0;
  11. }
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
30