Free Pascal Compiler version 3.0.0 [2015/11/16] for i386
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling foo.pas
foo.pas(30,7) Warning: Variable "max" does not seem to be initialized
foo.pas(36,7) Warning: Variable "maxh" does not seem to be initialized
foo.pas(37,7) Warning: Variable "maxl" does not seem to be initialized
foo.pas(39,14) Error: Incompatible types: got "Array[1..50] Of Array[1..50] Of SmallInt" expected "SmallInt"
foo.pas(85,9) Error: Can't read or write variables of this type
foo.pas(88,5) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
Error: C:\FPC\3.0.0\bin\i386-win32\ppc386.exe returned an error exitcode