It means that the complier has reached the end of a function, and hasn't encountered a return statement. Control paths are if statements, and switches. That said, you're missing a return statement after the first branch.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
bool CleaningEmployee::equal(...){
if (...)
{
if(...)
{
cout<<"The objects are equal"<<endl;
returntrue;
}
else
{
cout<<"The objects are not equal"<<endl;
returnfalse;
}
}
// <---- Here
}