I got this:
Subscript #2 of the array X has value 3 which is greater than the upper bound of 2
How to set up bounds?
integer :: i,j,k,c,n,a
real,dimension,,allocatable :: x
Then comes main program:
read(10,*)n,c
a=n*c
allocate(x(n,c))
Reads 4,2 but latter values of array elements will be greater then 2.
How to solve this?
Subscript #2 of the array X has value 3 which is greater than the upper bound of 2
How to set up bounds?
integer :: i,j,k,c,n,a
real,dimension,,allocatable :: x
Then comes main program:
read(10,*)n,c
a=n*c
allocate(x(n,c))
Reads 4,2 but latter values of array elements will be greater then 2.
How to solve this?