Hello,
I am guessing you are using the gfortran compiler and you wrote something like this and saved it in a file foo.f.
c234567
dimension a(6)
a=[0,0,0, &
0 ,0,0]
end
What went wrong here is that you used free-format Fortran but the conventions of gfortran treat the contents of foo.f as fixed-form Fortran. In fixed-form the trailing ampersand (&) is an error (which is the Error: Syntax error in array constructor at (1)) and that first zero on line 3 is interpreted as a statement label and not part of a statement (which is the Zero is not a valid statement label at (1))
If you write free-format Fortran you must either put it in a file with a filename extension that the compiler expects (most compilers will accept .f90 for this) or override the compiler’s defaults with a command line option (in gfortran’s case, -ffree-form)