I have been looking up and down through my code to no avail. Check50 shows that all tests are successful except for "is_tie detects tie after some candidates have been eliminated". I haven't the foggiest why this would be...
Please find my code presented below. Any guidance is greatly appreciated!
bool is_tie(int min)
{
bool mass_tie;
for (int i = 0; i < candidate_count; i++)
{
if (candidates[i].eliminated == false && candidates[i].votes == min)
{
mass_tie = true;
}
else
{
mass_tie = false;
}
}
return mass_tie;
}