Looking at the three pictures, I see that you have suffixed the programs with .f This tells the compiler to use fixed-form rather than free-form. Change the suffix to .f90 and try again or put the ampersand in column six and only in column six for fixed form. Good Luck.