fork download
  1. program loop
  2. integer row, col
  3. integer mat(2,2)
  4. integer summ = 0
  5. mat (1, 1) = 1
  6. mat (1, 2) = 2
  7. mat (2, 1) = 3
  8. mat (2, 2) = 4
  9.  
  10. Do row = 0, col, 1
  11. Do col = 0, row, 1
  12. summ = summ + mat(row, col)
  13. End Do
  14. End Do
  15.  
  16. print *, summ
  17.  
  18. end program loop
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.f95:4.18:

      integer summ = 0
                  1
Error: Syntax error in data declaration at (1)
prog.f95:8.1:

  mat (2, 2) = 4
 1
Warning: Nonconforming tab character at (1)
prog.f95:11.2:

      Do col = 0, row, 1
  1
Warning: Nonconforming tab character at (1)
prog.f95:12.2:

      summ = summ + mat(row, col)
  1
Warning: Nonconforming tab character at (1)
prog.f95:13.2:

      End Do
  1
Warning: Nonconforming tab character at (1)
stdout
Standard output is empty