Free Pascal Compiler version 2.6.2 [2013/02/12] for i386
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling foo.pas
foo.pas(12,8) Warning: Variable "str" does not seem to be initialized
foo.pas(23,12) Warning: Variable "total" does not seem to be initialized
foo.pas(24,5) Fatal: Syntax error, ";" expected but "identifier SUM" found
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)