My program will compile but while debugging, it gives a an assertion failure. Below is my code. This worked as an array but it will not work with a vector. Am I missing something?
int i = 0;
while(!ins.eof())
{
getline(ins, line);
nums[i] = atof(line.c_str());
cout << nums[i] << endl;
i++;
}