I am learning fortran and need my program to find specific values in an array. A simple program like below:
program hello
implicit none
integer :: x
x = findloc([4,9,0,2,-9,9,1],9)
end program hello
is giving me the following error:
Error: Function 'findloc' at (1) has no IMPLICIT type
I am compiling it using gfortran on macbook. Will really appreciate if I can get some help regarding findloc