Your code passes the tests of
cs50/2019/x/hello for me, so you probably did something wrong with the submission itself. A few things to check.
- Is this code saved as
Hello.c would be a different file.
- Is this code saved in the current directory? Likely not as much an issue in the lab environment. For example, if you type
cat hello.c in the terminal, does it show this particular code?
- Have you maybe made any changes to the code, between compilation and submitting?
Another way to check what has been submitted would be to browse your GitHub repository. You'd find the submission at https://github.com/submit50/USERNAME/tree/cs50/2019/x/hello (replace USERNAME with your GitHub user), or
check50 instead of
submit50 if you used that tool. And do you see the slug
cs50/2019/x/hello there? It's the git branch under which the file got submitted.
edit: And the
/tree/cs50/2019/x/hello URL is same as selecting the
cs50/2019/x/hello branch in the branch drop-down, which might already be the default in your case, I don't know GitHub enough to know all of its "magic". So you might see same content under both URLs, check the selected branch.
Could also be the submission process is temporarily bugged, which can happen, but usually with different symptoms.