#include <iostream>
#include <vector>

using namespace std;

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

	cout << "premier element : " << vec[0] << endl;
	cout << "taille de vec : " << vec.size() << endl;

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

	vec.push_back(5);

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