I have written the code for mario- less comfortable. But when I run check 50, it gives a error which states: :( mario.c compiles I am not being able to understand as to what is wrong.
2 Answers
Welcome to the forum.
There are a few things you should do before checking your code with check50.
After you write the program, you have to compile it. You can review these notes from Lecture 1 to refresh your memory. You need to fix any compile errors before you move on.
The next thing to do before check50 is run the program and evaluate whether the output matches the spec. In the mario
spec, there are some tests you can run, listed in the Usage section. It might not be a bad idea to make up tests of your own to verify the output.
Once the program compiles and runs (and gives correct results!) then it is time for check50. It may pass all tests, or it may highlight errors that you didn't catch in your testing. You want a "clean", ie all passes, from check50 before you submit.