#include <iostream>
#include <vector>
#include <algorithm>
using std::vector;
using std::cout;
using std::endl;
void print(int n) {
cout << n << " ";
}
int main()
{
vector<int> vec{ 13, 12, 300, 1, 98 };
for_each(vec.begin(), vec.end(), print);
cout << endl;
return 0;
}
/*
run:
13 12 300 1 98
*/