This is in any random Fortran tutorial. I expect you have the fixed source form. Then any statement must start at column 7 or farther.
Also,
REAL H3 = 0
isn't legal in free form source Fortran and does a completely different thing in fixed form (see @francesalus' comment). And in your case there is no reason to initialize the variable at all. You can just do
REAL H3
H3 = H**3
If you happen to need the initialization somewhere else, you either must use
real :: a = 0
(requires Fotran 90), or
REAL A
DATA A/0/
(in Fortran77). Beware, both version make the variable SAVE which you may know as static
from other languages.
The last point, you cannot introduce variables anywhere "in the middle of program", the declaration of variables have their place at the beginning of each compilation unit (program, function, subroutine,...).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…