本帖最后由 306908677 于 2014-12-7 20:55 编辑
不知道这是什么错误诶
[mw_shl_code=fortran,true] program main
implicit none
interface
subroutine random_arr(a)
implicit none
integer(4),intent(out)::a(:)
end
end interface
integer , allocatable :: A(:)
integer , allocatable :: B(:)
call random_arr(A)
call random_arr(B)
print *,A
print *,B
end program
subroutine random_arr(a) 1 警告: Interface mismatch in global procedure 'random_arr' at (1): ALLOCATABLE mismatch in argument 'a' /Users/StarkLee/Desktop/EQU.F90:4.22:
subroutine random_arr(a) 1 警告: Interface mismatch in global procedure 'random_arr' at (1): ALLOCATABLE mismatch in argument 'a' Jarvis:~ StarkLee$
|