Code related problem

where is mistake in this code,

ā€˜s’ should be equal to the maximum element in the array.

s = (*max_element(a, a + n)) * t;