#include <iostream>
#include <vector>

struct Object { int x; Object(int x) { this->x = x; } };

int main() {
  std::vector<Object> v;

  for (int i = 0; i < 5; i++) 
  {
    v.push_back(Object(i));
    std::cout << &(v.back()) << std::endl; // Prints the address of the Object just added
  }

}
