fork download
  1. program gds;
  2. var x:integer;
  3. begin
  4. readln(x);
  5. for a=1 to x then
  6. begin
  7. relay(200);
  8. writeln('|');
  9. end;
  10. readln;
  11. end.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.pas: In main program:
prog.pas:5: error: undeclared identifier `a' (first use in this routine)
prog.pas:5: error:  (Each undeclared identifier is reported only once
prog.pas:5: error:  for each routine it appears in.)
prog.pas:5: error: using `=' instead of `:=' in assignment
prog.pas:5: error: syntax error before `then'
prog.pas:5: error: missing `to' or `downto'
prog.pas:7: error: undeclared identifier `relay' (first use in this routine)
prog.pas:7: error: syntax error before `;'
prog.pas:7: error: missing `to' or `downto'
prog.pas:8: error: `for' loop bounds are of incompatible type
prog.pas:8: error: syntax error before `;'
prog.pas:8: error: missing `to' or `downto'
stdout
Standard output is empty