fork download
  1. var a,i,b,s:longint;
  2. begin
  3. assign(input,'input.txt');
  4. assign(output,'output.txt');
  5. reset(input);
  6. rewrite(output);
  7. while not(eof(input)) do
  8. begin
  9. read(s);
  10. for i:=1 to length(s) do
  11. if s[i]='!' then
  12. n:=n+1;
  13. writeln(n);
  14. n:=0;
  15. end;
  16. end.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.pas:1: warning: missing program header
prog.pas: In main program:
prog.pas:10: error: argument 1 to `Length' must be a string or char
prog.pas:11: error: subscripted object is not an array or string
prog.pas:12: error: undeclared identifier `n' (first use in this routine)
prog.pas:12: error:  (Each undeclared identifier is reported only once
prog.pas:12: error:  for each routine it appears in.)
stdout
Standard output is empty