0

Whenever I type Make Mario into the Terminal for the "More Comfortable" Mario.c assignment in Week 1, it keeps telling me I have an error on 13:9 - but there's nothing typed on 13:9. I'm a bit mystified...

Mario.c Code

Here's the error message:

enter image description here

Any idea what is going on?

0

Well, I would have to say that the compiler knows which lines of code it doesn't like. Is it possible that you are working with one version of the file and the compiler is trying to make a different version of the file? Or perhaps trying to make a version in a different directory?

Or, have you edited the file but forgot to save it and the compiler is still trying to compile the earlier version of the file? The IDE doesn't autosave changes. You must save the file to disk.

These are two very common mistakes made by new programmers. ;-)

| improve this answer | |
  • It was fixed somehow. I just created a new file called mario1.c and copied and pasted all my code over to that. Once I did that, I compiled both files without changing anything and suddenly there were no errors on either. I'm not exactly sure what happened. I wonder if it happened because my CS50 sandbox timed out? I changed my code after it timed out, and when I compiled my code, I got that error until I did the copy/paste thing mentioned above. Perhaps it was still compiling the code from before the timeout still. Whatever - it works now. Thanks for answering! – Daniel Cloud Apr 19 at 6:15

You must log in to answer this question.

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