fork download
  1. var a,i,k:integer;
  2. begin
  3. k:=3;
  4. for i:=1 to 200 do
  5. begin
  6. if k mod 23=0 then write(i,' ');
  7. if i mod 2=1 then k:=(2*k+3) mod 23;
  8. else k:=2*k-3 mod 23;
  9. if k<0 then k:=23+k;
  10. end;
  11. end.
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Free Pascal Compiler version 2.2.0 [2009/11/16] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for i386
Compiling prog.pas
prog.pas(8,22) Fatal: Syntax error, ";" expected but "ELSE" found
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
stdout
Standard output is empty