0

Program works like a charm but still get these errors in the end when running the check.

:( handles a height of 0 correctly
    did not find EOF
:( handles a height of 1 correctly
    expected "##\n", not " ##\n"
:( handles a height of 2 correctly
    expected " ##\n###\n", not " ##\n ###\n"
:( handles a height of 23 correctly
    expected " ...", not " ..."
:( rejects a height of 24, and then accepts a height of 2
    expected " ##\n###\n", not " ##\n ###\n"

Any ideas please. Do I need to post the code for it to make sense?

Thanks

1
  • Managed to sort the issue with spaces. The EOF remains a mystery though
    – Alpokanto
    Jan 20, 2018 at 18:16

1 Answer 1

3

In case of a height of zero (which is a valid height), your programme should print zero lines and exit. You probably reject zero as a height and ask again, the tester doesn't expect being prompted for more input and waits for your programme to end.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .