fork download
  1. IDENTIFICATION DIVISION.
  2. PROGRAM-ID. SOLUTION.
  3. DATA DIVISION.
  4. WORKING-STORAGE SECTION.
  5. 77 A PIC 9.
  6. 77 B PIC 9.
  7. 77 ANS PIC 9.
  8. PROCEDURE DIVISION.
  9. ACCEPT A B.
  10. *ACCEPT B.*
  11. ADD A B GIVING ANS.
  12. DISPLAY ANS.
  13. STOP RUN.
  14.  
  15.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
2
2
compilation info
prog.cbl:     9: error: syntax error, on or before 'B'
prog.cbl:     9: error: unknown or wrong statement, on or before 'B'
prog.cbl:    10: error: unknown or wrong statement, on or before '*'
stdout
Standard output is empty