1 2 3 4
std::vector<int> some_list(10); std::for_each(some_list.begin(), some_list.end(), [](int &x) { std::cin >> x; });