#include <iostream>
#include <vector>

using namespace std;

vector<int> one_two_three();
void display_vector(const vector<int> &);
void rajouter_5(vector<int> &);

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

	rajouter_5(vec);
	display_vector(vec);
}

void rajouter_5(vector<int> &vec)
{
	vec.push_back(5);
}

void display_vector(const vector<int> &vec)
{
	cout << "elements de vec : ";
	for(int i = 0; i < vec.size(); i++)
		cout << vec[i] << " ";
	cout << endl;
}

vector<int> one_two_three()
{
	vector<int> ret = {1, 2, 3};
	return ret;
}