I'm trying to do a binary search on a vector of strings and keep getting this error. I just can't for the life of me figure out what is wrong, so if anyone could help me out that'd be really amazing.

This is the PhoneEntry header file with the class declaration:
using namespace std;
class PhoneEntry
	PhoneNumber eNumber;
	string firstName, 
	void writeDots(ostream&, int) const;
	istream& readEntry(istream&);
	ostream& writeEntry(ostream&) const;
	bool greaterAlpha(const PhoneEntry &);
	void mySort(vector<PhoneEntry>&, int);
	PhoneEntry key(string, string);
And here's the part of the program that I'm having issues with:
int binarySearch(PhoneEntry keyP, vector<PhoneEntry> entryNames)
	int low = 0, mid, high = entryNames.size()-1;

	while (low <= high)
		mid = (low + high) / 2;
		if (keyP.greaterAlpha(entryNames[mid])) 
                //greaterAlpha compares the two strings and returns true or false based on alphabetical order
			high = mid - 1;
		else if (!keyP.greaterAlpha(entryNames[mid]))
			low = high + 1;
			low = high + 1;

	if (keyP == entryNames[mid]) //This is the line where I keep getting the error
		return mid;
		return (mid * -1);