Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
The problem set for Week 1 introduces the C programming language.
1
vote
About Grades problem set 1
If your output does not match the staff implementation's output exactly then it will not be correct. Your program will be graded automatically by another computer program so it must follow the pset r …
1
vote
Accepted
CS50 Submit - Did not get any rating for my mario program even though it works
As it is stated in the CS50 Syllabus, you have until the last day of class to resubmit any and all psets, only your most recent submission will count for your grade, and you can resubmit as many times …
0
votes
misleading description of int main(int argc, string argv[])
Week 2 = third week of class, pset1.
One of the objectives of cs50 is to change the way you think & how you see the world around you. …
1
vote
Accepted
Pset1 mario: check50 says height 0 not handled right (even though it is?)
In order to pass check50, your output should mirror the staff implementation as close to exact as possible (in terms of output). Your code does not handle a pyramid of height 0 appropriately. Play aro …
0
votes
Accepted
why does my pset1 greedy code not handle 4.2 correctly? (yet handles 2.2, 3.2, 5.2...correctly)
This case was specifically entered to illustrate floating point imprecision. You may need to re-watch Zamyla's video walkthrough, paying specific attention to how to properly round the float. It may a …
1
vote
Accepted
Check50 greedy error "expected output, not a prompt for input"
The specification is very specific as to its requirements. One of the first things your program must have is a prompt for user input, and to reprompt with an error when the user enters input beyond th …
1
vote
In pset1 greedy, I try to use a while loop to reprompt invalid input. But it simply exit the...
If I'm reading your code correctly, there is no way for the prompt to ever get re-executed after a false condition is realized. It is outside of any looping construct. The printf executes, the getfloa …
1
vote
How do I fix error expected in for statement specifier when I use compiler
Your syntax needs to be cleaned up. A for loop must have an initialization, a condition to evaluate, and an incremental in this format:
for(INITIALIZATION; CONDITION; INCREMENT/DECREMENT)
{
/* L …
1
vote
Mario program placement of # is off
It may benefit you to debug your for loops one at a time. Comment out or delete one of the space or hash printing loops, and get your program to the point that it can print some character the way that …
2
votes
Accepted
Am I too greedy?
If your code includes a loop for 50 cent pieces, remove it. That is the only way your code makes sense right now. Half Dollars are not part of the specification, and are not normally seen in circulati …