foo.pas(14,11) Error: Incompatible type for arg no. 2: Got "Array[0..1000] Of Array[0..1000] Of LongInt", expected "LongInt"
foo.pas(16,9) Error: Operator is not overloaded: "Array[0..1000] Of Array[0..1000] Of LongInt" + "ShortInt"
foo.pas(24,10) Error: Can't read or write variables of this type
foo.pas(27,11) Error: Incompatible type for arg no. 2: Got "Array[0..1000] Of Array[0..1000] Of LongInt", expected "LongInt"
foo.pas(28,9) Error: Operator is not overloaded: "Array[0..1000] Of Array[0..1000] Of LongInt" + "ShortInt"
foo.pas(29,10) Error: Can't read or write variables of this type
foo.pas(36,23) Warning: Variable "sum" does not seem to be initialized
foo.pas(36,26) Error: Operator is not overloaded: "Array[0..1000] Of Array[0..1000] Of LongInt" + "LongInt"
foo.pas(38,22) Error: Incompatible types: got "LongInt" expected "Array[0..1000] Of Array[0..1000] Of LongInt"
foo.pas(40,9) Error: Operator is not overloaded: "LongInt" + "Array[0..1000] Of LongInt"
foo.pas(41,6) Error: Incompatible types: got "LongInt" expected "Array[0..1000] Of Array[0..1000] Of LongInt"
foo.pas(42,5) Error: Incompatible types: got "ShortInt" expected "Array[0..1000] Of Array[0..1000] Of LongInt"
foo.pas(58,26) Error: Can't read or write variables of this type
foo.pas(63,27) Error: Can't read or write variables of this type
foo.pas(66,4) Fatal: There were 13 errors compiling module, stopping
Fatal: Compilation aborted
Error: C:\FPC\2.6.2\bin\i386-win32\ppc386.exe returned an error exitcode (normal if you did not specify a source file to be compiled)