#include <iostream>
#include <vector>

using namespace std;

void vctrInhlt(vector<int>::iterator from, vector<int>::iterator to)
{
    cout << *from << endl;
    if (from != to)
    {
        vctrInhlt(from + 1, to);
    }
}


int main()
{
    vector<int> vec = {0, 1, 2, 3, 4, 5, 6};
    vctrInhlt(vec.begin(), vec.end());
}