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(8,7) Error: Identifier not found "j"
foo.pas(8,7) Error: Ordinal expression expected
foo.pas(8,7) Error: Illegal counter variable
foo.pas(9,14) Error: Identifier not found "j"
foo.pas(13,13) Error: Identifier not found "j"
foo.pas(14,13) Error: Identifier not found "j"
foo.pas(15,7) Error: Identifier not found "j"
foo.pas(16,7) Error: Identifier not found "j"
foo.pas(22,7) Error: Identifier not found "j"
foo.pas(22,7) Error: Ordinal expression expected
foo.pas(22,7) Error: Illegal counter variable
foo.pas(24,11) Error: Identifier not found "j"
foo.pas(25,24) Error: Identifier not found "j"
foo.pas(27,8) Warning: Variable "g" does not seem to be initialized
foo.pas(30,4) Fatal: There were 13 errors compiling module, stopping
Fatal: Compilation aborted
Error: C:\FPC\3.0.0\bin\i386-win32\ppc386.exe returned an error exitcode