結果 : max element in vector c++ function