fork download
  1. #include <bits/stdc++.h>
  2. #include<vector>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. vector<int> v(3);
  8. v[0]=10 ;
  9. v[1]=9;
  10.  
  11. v.push_back(11);
  12. cout<<v[1];
  13. return 0;
  14. }
Success #stdin #stdout 0s 5620KB
stdin
Standard input is empty
stdout
9