結果 : max element in array c++ function