Error 2 error C4716: 'UnfairDivision ::functionName' : must return a value d:\work\tc\tc\c ode.cpp 30
Why this error happens. Please help. I'm trying to use accumulate() of stl.
Code:
int sum = accumulate(assets.begin(), assets.end(), 0);
int sum = accumulate(assets.begin(), assets.end(), 0);
int main()
{
ifstream In;
string folder, filename, name2, line;
int i = 0;
cout << endl << "Enter the name of the folder" << endl;
cout << "Follow the format: c:/your_folder_name/
void get()
{
string line;
ifstream myfile;
myfile.open ("jty.txt");
while (getline(myfile, line))
{
myfile >> one[i].a >> one[i].b >> one[i].c;
i++;
}
myfile.close();
}
while (!myfile.eof())
{
for(int i=0;i<12;i++)
{
myfile>>one.no[i];
}
}