write the function void get_emp_rec(int &id, double &prate, double &hours) that reads an employee's id number, pay rate and number of hours with an appropriate message. It returns the ID, pay rate, and the number of hours using the reference parameters id, prate, and hours, respectively.
You cannot return an expression from a function with return type void.
Your code looks alright, just remove the return statement since you are using references. Also please remove usingnamespace std; from your global scope. If you really have to, put it in your function's scope.
However, it's still up to you to make "an appropriate message".