0

Despite having the correct output, submitting Mario, did not getany credit at all. Went over previous Q & A's; didn't find similar issues.

Height: 8
       ##
      ###
     ####
    #####
   ######
  #######
 ########
#########
jharvard@appliance (~/Dropbox/pset1): ./mario
Height: -2
Height: -1
Height: foo
Retry: bar
Retry: 1
##
jharvard@appliance (~/Dropbox/pset1): check50 2014/x/pset1/mario mario.c
:) mario.c exists
:) mario.c compiles
:( rejects a height of -1
\ expected output, not an exit code of 0
:( handles a height of 0 correctly
\ expected output, not an exit code of 0
:( handles a height of 1 correctly
\ expected output, not an exit code of 0
:( handles a height of 2 correctly
\ expected output, not an exit code of 0
:( handles a height of 23 correctly
\ expected output, not an exit code of 0
:( rejects a height of 24
\ expected output, not an exit code of 0
:( rejects a non-numeric height of "foo"
\ expected output, not an exit code of 0
:( rejects a non-numeric height of ""
\ expected output, not an exit code of 0

https://sandbox.cs50.net/checks/cf00ef604c9146849df57000508205f6

2
  • It seems that you have printed nothing to stdout. In simpler words, have you used any printf() statement?
    – sinister
    Oct 13, 2014 at 16:33
  • Are you sure you're submitting the same version of the program that you're running in the Terminal?
    – Air
    Oct 13, 2014 at 23:36

1 Answer 1

0

The code isn't generating an output. You aren't printing out anything. Instead, it encounters a return 0. If the output of height 8 you posted above is yours, I suggest you recheck the version of the code you applied check50 on, since it is not accepting any positive height. Maybe you forgot to save changes?

You must log in to answer this question.

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