Download the MinGW-w64 build (not the old MinGW.org).
F77 uses "Fixed Form" (where columns matter). Ensure your file extension is .f or .for so the compiler knows to use F77 rules. fortran 77 compiler for windows 10 64-bit free download
Thus, you need one of three solutions: