fork(1) download
  1. const n = 4;
  2. var i, x: integer;
  3. var maximum, count: integer;
  4. begin
  5. count := 0; maximum := 999;
  6. for i:=1 to n do begin
  7. read( x );
  8. if x mod 3 = 0 then begin
  9. count := count + 1;
  10. if x < maximum then maximum := x;
  11. end;
  12. end;
  13. if count > 0 then begin
  14. writeln(count);riteln(maximum);
  15. end
  16. else writeln('NO');
  17. end.
  18.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
2 
9 
4  
3
compilation info
prog.pas:1: warning: missing program header
prog.pas: In main program:
prog.pas:14: error: undeclared identifier `riteln' (first use in this routine)
prog.pas:14: error:  (Each undeclared identifier is reported only once
prog.pas:14: error:  for each routine it appears in.)
stdout
Standard output is empty