here is my code so far, please tell me what i am doing wrong:
[code/]
program testVectors
implicit none
integer:: n
integer:: i = 0
real:: innerProd
real, dimension

:: array1, array2
write(*,*)"Enter number of elements to each array: "
read(*,*)n
do i = 1, n
if(i == 1) then
write(*,*)"Please enter the first value of each array (array 1 and array 2): "
read(*,*)array1(1), array2(1)
else
write(*,*)"Please enter the next value of each array (array 1 and array 2): "
read(*,*)array1(i), array2(i)
end if
end do
write(*,*)"The dot product of the two vectors is: ", innerProd(array1, array2, n)
end program
real function innerProd(array1, array2, n)
implicit none
integer, intent(in):: n
real, intent(in), dimension

:: array1, array2
integer:: i = 0
real:: newSum = 0.
do i = 1, n
newSum = array1(i) * array2(i)
innerProd = innerProd + newSum
end do
end function
[/code]
my error messages include a huge list weird words that all start with a and b so i wont post it, i think i am on the right track, just something is not quite right. appreciate any insight