Corrected version

The hydro power function is improved and includes the height as a
parameter
the code works with 0 and with every input tested