Fortran

装置番号が未定義の場合のエラー

gfortranでコンパイルしたFortranのコードを実行していて、 Fortran runtime error: Bad unit number in OPEN statementというエラーになった。エラー発生箇所を調べると、どうやら iuto = 6 write(iuto, *) ... となるべきところが、 iuto = 6 write(ituo, …