#include <iostream>
#include <vector>
void printVector(std::vector<int> const &v) {
for (auto const &n: v) {
std::cout << n << " ";
}
}
int main ()
{
std::vector<int> v = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
printVector(v);
v.clear();
v.push_back(734);
v.push_back(915);
std::cout << std::endl;
printVector(v);
return 0;
}
/*
run:
1 2 3 4 5 6 7 8 9
734 915
*/