#include <iostream>
#include <vector>

using namespace std;

int main()
{
	vector<int> vec = {1, 2, 3, 4};

	vec.erase(vec.begin() + 2);

	cout << "taille de vec : " << vec.size() << endl;
	cout << "contenu de vec : ";
	for(int i = 0; i < vec.size(); ++i)
		cout << vec[i] << " ";
	cout << endl;
}