fork download
  1. program sndlast (input,output);
  2. var a : array [1..9] of char;
  3. i : integer
  4. begin
  5. i:=0;
  6. while not eoln do
  7. begin
  8. i:=i+1;
  9. read(a[i])
  10. end;
  11. readln;
  12. writeln(a[i-1]);
  13. end.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
9923
compilation info
prog.pas:3: error: variable access expected -- type name given
prog.pas:4: error: syntax error before `begin'
prog.pas:6: error: syntax error before `while'
prog.pas: In main program:
prog.pas:8: error: undeclared identifier `i' (first use in this routine)
prog.pas:8: error:  (Each undeclared identifier is reported only once
prog.pas:8: error:  for each routine it appears in.)
prog.pas:10: error: syntax error before `;'
prog.pas:10: warning: missing `.' at the end of program/unit/module
stdout
Standard output is empty