0

I am getting the following errors, which I do not understand, since I seem to be getting the right answers which are getting rejected... can anyone help?

:) greedy.c exists  
:) greedy.c compiles  
:( input of 0.41 yields output of 4  
   \ expected output, but not "4"  
:( input of 0.01 yields output of 1  
   \ expected output, but not "1"  
:( input of 0.15 yields output of 2  
   \ expected output, but not "2"  
:( input of 1.6 yields output of 7  
   \ expected output, but not "7"  
:( input of 23 yields output of 92  
   \ expected output, but not "92"  
:( input of 4.2 yields output of 18  
   \ expected output, but not "18"  
:) rejects a negative input like -.1  
:) rejects a non-numeric input of "foo"  
:) rejects a non-numeric input of ""  
0

1 Answer 1

3

Add a newline. When they say the expect 4, they expect "4\n".

1
  • Yep that worked - thank you!
    – jsa724
    Nov 24, 2014 at 19:39

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