fork download
  1. program week5_2;
  2. var option: integer;
  3. begin
  4. writeln('Welcome to 233 Telecommunication Services');
  5. writeln('Press 1 to view your bill');
  6. writeln('Press 2 to check your points');
  7. writeln('Press 3 to redeem your points');
  8. writeln('Press 4 to topup');
  9. write('Press 0 to exit: ');
  10. readln(option);
  11.  
  12. case option of
  13. 1: writeln('Your bill is rm30');
  14. 2: writeln('You have 394 points');
  15. 3: writeln('bla bla bla');
  16. 4: writeln('xxxx');
  17. 0: begin
  18. writeln('Thank you for using our service')
  19. delay(4000);
  20. halt;
  21. end;
  22. else
  23. wrieln('wrong entry');
  24. end;
  25. readln;
  26. end.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.pas: In main program:
prog.pas:19: error: syntax error before `delay'
prog.pas:19: error: undeclared identifier `delay' (first use in this routine)
prog.pas:19: error:  (Each undeclared identifier is reported only once
prog.pas:19: error:  for each routine it appears in.)
prog.pas:19: error: syntax error before `;'
prog.pas:23: error: undeclared identifier `wrieln' (first use in this routine)
prog.pas:23: error: missing `..'
prog.pas:23: error: missing comma
prog.pas:23: error: syntax error before `;'
stdout
Standard output is empty