i am getting error in following program. what is "iota". Why it is giving an error in the following program
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
vector<int> V(10);
iota(V.begin(), V.end(), 7);
copy(V.begin(), V.end(), ostream_iterator<int>(cout, " "));
cout << endl;
cin.get();
}