fork download
  1. program suma;
  2. var s1, s2, s3, a, b:real;
  3. begin
  4. s1:=0; s2:=0; s3:=0;
  5. begin
  6. read a;
  7. if a>0 s1:=s1+1;
  8. if a<0 s2:=s2+a;
  9. if a=0 s3:=s3+1;
  10. end;
  11. write ('suma pozitivnih:',s1);
  12. writeln('suma negativnih:',s2);
  13. writeln ('jednakih nuli ih ima:',s3);
  14. end.
  15.  
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(6,6) Fatal: Syntax error, ";" expected but "identifier A" 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