I have trying to complete the ’ CHEFRECP’ problem.
When I try to use
Ada.Text_IO.Get_Line for getting a new line (as in this submit). The compiler raises this error:
ERROR: Unexpected exception: raised ADA.IO_EXCEPTIONS.END_ERROR : a-tigeli.adb:96
If I try to use
Ada.Text_IO.Get for getting only one character a time (as in (ADA example)[https://www.codechef.com/wiki/sample-solutions#Ada95]), I can not detect new lines and it is not possible to get correctly the last ingredient (as in this submit).
What is the right way to capture the input in ADA?