fork download
  1. program TR
  2. implicit none
  3. real, dimension(1:3,1:2)::A=(/'A11', 'A12', 'A21', 'A22', 'A31', 'A32'/)
  4. real, dimension( 1:2,1:3)::AT=(/'A12', 'A22', 'A32', 'A11', 'A21', 'A31'/)
  5. write(*,*) 'A= ?'
  6. read(*,*) AT
  7. end program TR
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.f95:3:27:

 real, dimension(1:3,1:2)::A=(/'A11', 'A12', 'A21', 'A22', 'A31', 'A32'/)
                           1
Error: Incompatible ranks 2 and 1 in assignment at (1)
prog.f95:4:29:

 real, dimension( 1:2,1:3)::AT=(/'A12', 'A22', 'A32', 'A11', 'A21', 'A31'/)
                             1
Error: Incompatible ranks 2 and 1 in assignment at (1)
prog.f95:6:12:

 read(*,*) AT
            1
Error: Symbol ‘at’ at (1) has no IMPLICIT type
stdout
Standard output is empty