Dear all,
I would like to know the type that is returned by max_element function: is it the max value in a vector or a pointer to the maximum value? Actually, I am trying to write a code that returns the position of the max in one vector and then accesses to the same position in an other vector to increment the value which is stored there, but when I compile, I have this error message: cannot convert ‘float’ to ‘int*’ in assignment