#include <iostream>
#include <vector>

int main() {
    const std::vector<int> values{2, 4, 6};
    int total{0};
    for (auto position = values.begin(); position != values.end(); ++position) {
        std::cout << *position << '\n';
        total += *position;
    }
    std::cout << "total " << total << '\n';

    const std::vector<int> empty{};
    int empty_total{0};
    for (auto position = empty.begin(); position != empty.end(); ++position) {
        empty_total += *position;
    }
    std::cout << "empty " << empty_total << '\n';
    return 0;
}
