[EDIT: Code removed for Honor Code compliance.]
The code seems to be running perfectly fine and gives the correct output But every time i try to check it, i get this:
:) mario.c exists
:( mario.c compiles
code failed to compile
:| rejects a height of -1
can't check until a frown turns upside down
:| rejects a height of 0
can't check until a frown turns upside down
:| handles a height of 1 correctly
can't check until a frown turns upside down
:| handles a height of 2 correctly
can't check until a frown turns upside down
:| handles a height of 8 correctly
can't check until a frown turns upside down
:| rejects a height of 9, and then accepts a height of 2
can't check until a frown turns upside down
:| rejects a non-numeric height of "foo"
can't check until a frown turns upside down
:| rejects a non-numeric height of ""
can't check until a frown turns upside down
To see the results in your browser go to https://submit.cs50.io/check50/99bb52116361a4b77fd2f3696bebb9450bd29277