4 integer, parameter :: n
=5, m
=3
5 character(kind
=4,len
=5), dimension(n
) :: a
6 character(kind
=4,len
=5), dimension(n
,m
) :: b
7 character(kind
=4,len
=5) :: res
8 integer, dimension(n
,m
) :: v
9 real, dimension(n
,m
) :: r
11 logical, dimension(n
,m
) :: mask
12 character(kind
=4,len
=5), dimension(:,:), allocatable
:: empty
13 integer(kind
=4), dimension(5) :: kmin
= [-1, -1, -1, -1, -1]
14 character(kind
=4,len
=5) :: all_full
17 all_full
= transfer(kmin
,all_full
)
18 write (unit
=a
,fmt
='(I5.5)') (21-i
*i
+6*i
,i
=1,n
)
20 if (res
/= 4_
'00026') STOP 1
24 if (count(v
<30) > 1) exit
26 write (unit
=b
,fmt
='(I5.5)') v
27 write (unit
=res
,fmt
='(I5.5)') minval(v
)
28 if (res
/= minval(b
)) STOP 2
30 if (res
/= minval(b
, smask
)) STOP 3
32 if (all_full
/= minval(b
, smask
)) STOP 4
35 write (unit
=res
,fmt
='(I5.5)') minval(v
,mask
)
36 if (res
/= minval(b
, mask
)) STOP 5
38 if (minval(b
, mask
) /= all_full
) STOP 6
39 allocate (empty(0:3,0))
41 if (res
/= all_full
) STOP 7