Heat contained in compressed gas [closed]

I am trying to compute the amount of energy released in the form of heat if I compress 1 cubic meter of Hydrogen to 0.1 cubic meter while submerged in a large body of water of a given temperature - say 300 degrees Kelvin.

Would someone smarter that I am be able to show me the appropriate formula and the computations to arrive at the result in Joules?