#include <iostream>
#include <vector>
using namespace std;

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

	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	std::cout << v[0] << v[1] << v[2] << std::endl;

	v.erase(v.begin() + 1);  // OK
//	v.erase(&v[1]); // error: no matching function for call ...

	std::cout << v[0] << v[1] << std::endl;


	return 0;
}