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(6,5) Error: Ordinal expression expected
foo.pas(8,5) Error: Ordinal expression expected
foo.pas(8,21) Warning: Variable "k" does not seem to be initialized
foo.pas(12,5) Error: Ordinal expression expected
foo.pas(13,5) Error: Ordinal expression expected
foo.pas(15,5) Error: Ordinal expression expected
foo.pas(18,4) Fatal: There were 5 errors compiling module, stopping
Fatal: Compilation aborted
Error: C:\FPC\3.0.0\bin\i386-win32\ppc386.exe returned an error exitcode