#include <iostream> #include <vector> #include <numeric> using namespace std; int main() { vector<int> v(10); iota (begin(v), end(v), 0); for (auto i : v) { cout << i << ' '; } cout << endl; return 0; }