0

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.

1
  • Please include your code so we can help you debug
    – wlh
    Commented Aug 26, 2018 at 16:51

2 Answers 2

3

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.

0

I realised my mistake. I had to compile it using clang which I was not doing.

You must log in to answer this question.

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