I tried that, now it says "qualifiers dropped in binding reference of type "int &" to initializer of type "const int"" about "count". I can't change the function headers either because I need to use those exact ones to get credit.
Well, it wont work without changing it. Because int& count is not the same as constint count so you cant send that in as parameter. Either you're gonna have to change the readFromFile one to const int& count, or without reference.
void readFromFiletoArrays(ifstream& inf, string names[], double empData[][5], int count)