Multiple statements on the same line in FORTRAN 90

I have a whole series of tasks that I put on the same icon using ";" to split statemnts, but I get this error:

1.0; pounds (1.9) 1 Error: unclassified statement in (1) In the LJ.F90 file: 223

I don’t understand where this comes from when the code works for me, if each statement is on a separate line. The code is really simple ...

What am I doing stupidly wrong ... below the code is all on one line.

lb(1,1) = 1.0; lb(1,2) = 1.0; lb(1,3) = 1.0; lb(1,4) = 1.0; lb(1,5) = 1.0; lb(1,6) = 1.0; lb(1,7) = 1.0; lb(1,8) = 1.0; lb(1,9) = 1.0
+5
source share
2 answers

134 Fortran 90, . , Sun Studio 132 .

, , . , .

+8

@Deditos, Fortran , :

lb (1, 1:9) = 1.0

1.0? :

lb = 1.0
+8

All Articles