Hello. I have a function that takes a vector of employee structs and I need to find the max salary in the struct. I am trying to use the max_element function from the algorithm header but I get an obscene amount of errors with this code from line 34.
Any help would be great.