The selection_sort function takes in a vector as you currently have it defined in your class. void selection_sort(vector<Employee_Record> employees) , however you aren't passing in anything when calling it in main.

display_record takes a vector and an integer but again you aren't passing anything to it.