fork download
  1. program pro8 (input,output);
  2. var n,i,j,x,y,z,k :integer;
  3.  
  4. function dinami(a,d:integer) :integer;
  5. var k:integer;
  6. begin
  7. if d:=0 then dinami:=1
  8. else
  9. begin
  10. dinami :=1;
  11. if a=2 then
  12. for k:=1 to d do
  13. dinami:= dinami*2
  14. else if a= 3 then
  15. for k:=1 to d do
  16. dinami := dinami*3
  17. else
  18. for k:=1 to d do
  19. dinami :=dinami*5;
  20. end;
  21. end;
  22.  
  23. begin
  24. readln(n);
  25. j:=0;
  26. for i:=1 to n do;
  27. begin
  28. x:=0;
  29. repeat
  30. k:= dinami(5,x);
  31. y:=0;
  32. repeat
  33. k:= k + dinami(3,y);
  34. z:=0;
  35. repeat
  36. k:= k + dinami(2,z);
  37. z:=z+1
  38. until (k>=i);
  39. y:=y+1;
  40. until (k>=i);
  41. x:=x+1;
  42. until (k>=i);
  43. if k =i then j:= j+1;
  44. end;
  45. writeln(j);
  46. end.
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(7,6) Fatal: Syntax error, "THEN" expected but ":=" 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