My mario.c output looks visibly correct, but some of the aspects are failing check50 and gradebook. For example, the height of 1 check shows message "\ expected output, but not "xx\n"

Other data points are:

  • I believe I am running check50 correctly: check50 and the gradebook have given me credit for other aspects of Mario (exist, compile, reject -1, handle 0, reject foo, reject"") & both check50 and the gradebook have worked for greedy

  • I've thoroughly researched this site, and I do NOT have the excess space that has been the root of a similar problem for other SE questions "\ expected output, but not " xx\n"

  • My code rejects a height of 24, but then check50 shows that 24 is returning a pyramid "\ expected output, but not " xx\n ..."

Any suggestions on how to make an update to have check50 & gradebook recognize my code as correct?

  • 1
    Can you edit the question to add the exact output on the terminal for one of the values check50 says is incorrect? I mean by running ./mario yourself.
    – wallek876
    Commented Mar 22, 2015 at 9:40
  • I get the exact same output error on this problem set. I have, however implemented the "#" instead of "x". The output displays correctly and have used nested for loops for my "space" , "#" and "\n". Upon checking the code I still receive the error messages that the OP has posted.
    – Cyn Villa
    Commented Aug 28, 2015 at 14:15

2 Answers 2


Could it just be that you are using 'x' where you should be using '#'?


also check you have "2" spaces in the middle of the pyrimid as per instructions.

  • The two spaces in the middle of the double pyramid is the specification for the hacker edition of mario hacker1. You can delete your question to avoid future downvotes.
    – ChrisG
    Commented Oct 3, 2015 at 10:06

You must log in to answer this question.

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