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