Problem Set 1
Collaboration on problem sets is not permitted except to the extent that you may ask classmates and others for help so long as that help does not reduce to another doing your work for you, per the course’s policy on academic honesty.
The staff conducts random audits of submissions to CS50x. Students found to be in violation of this policy will be removed from the course. Students who have already completed CS50x, if found to be in violation, will have their CS50 Certificate permanently revoked.
What to Do
Did you start CS50x in 2021 or prior? Be sure to follow these instructions if you haven’t already!
- Log into code.cs50.io using your GitHub account and follow the on-screen instructions to set up your very own “codespace” for Visual Studio Code
- Once your codespace has loaded, close any Welcome tabs that might have opened by default
- In Codespace’s terminal, complete the steps under SSH at cs50.readthedocs.io/github/#ssh to configure your codespace for some of CS50’s command-line tools. (You should skip this step if you have already set up your codespace for another CS50 course.)
- Log into submit.cs50.io using your GitHub account and click Authorize to activate check50.
update50in your codespace’s terminal window to ensure your codespace is up-to-date and, when prompted, click Rebuild now
- Submit Hello
- Submit one of:
- Submit one of:
If you submit both versions of Mario, we’ll record the higher of your two scores. If you submit both Cash and Credit, we’ll record the higher of your two scores.
When to Do It
- Try out any of David’s programs from class via Week 1’s source code.
- See CS50’s style guide for C for tips on how to improve your code’s style.
- If you see any errors when compiling your code with
make, focus first on fixing the very first error you see, scrolling up as needed. If unsure what it means, try asking
help50for help. For instance, if trying to compile
is yielding errors, try running
help50 make hello