fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. vector<int>x {1,2,3};
  8.  
  9. cout<<&x.at(1)<<" "<<&x[2]<<endl;
  10. }
Success #stdin #stdout 0.01s 5436KB
stdin
Standard input is empty
stdout
0x5641786b9e74 0x5641786b9e78