fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7. vector<int> x{1,2,3};
  8. cout << x.data() << endl;
  9. x.push_back(4);
  10. cout << x.data() << endl;
  11. // your code goes here
  12. return 0;
  13. }
Success #stdin #stdout 0s 4472KB
stdin
Standard input is empty
stdout
0x55556f0f2e70
0x55556f0f3ea0