Hot answers tagged

3 votes
Accepted

What is the correct `wget` URL for breakout (pset 3) for spring 2015?

The zip file you linked contains folders for breakout and find, as specified in the problem set. There does not appear to be any fifteen content. Note that find was moved to accompany breakout, as ...
3 votes
Accepted

Mispellings Questions.txt

Why do you think we pass before and after by reference (instead of by value) to calculate, even though we're not changing their contents? Consider the type of before and after and what are the ...
  • 7,356
1 vote
Accepted

Returning 2015 student (Starting fresh)

Yes they will. The grading will be done according to your last submission. I have submitted more than one solutions for half of the psets. Got the grades according to the last submission.
1 vote
Accepted

Score kept from 2015 to 2016

No, you don't have to sign up again. It was decided to extend the deadline from the end of 2015 to the end of 2016, so your grades received from last year continue forward to this year. However, for ...
  • 64.7k
1 vote

When can I get 2015 CS50 certificate from edX

Certificates are not generated immediately. they are generated every once in a while by edX. you should find a link to your certificate on your edX dashboard soon.
1 vote
Accepted

Week 1 - Conditions - error expression result unused (expect ; at end of if else)

The if/else if/else conditions are used in the following way: Single condition if (condition) { // code to execute } Double condition if (condition) { // code to execute } else { // ...
  • 7,356
1 vote

Week 1 - Conditions - error expression result unused (expect ; at end of if else)

else is your last resort kind of command its like if this then { do this } or else if this then { do that } and finally when you cant think of any other condition you say you know what MR ...
1 vote

My version of server.c not working

Didn't really go through the first section of your code, but whenever you use the error function, you need to "continue" in order to go back to the beginning of the infinite loop. This prevents the ...
1 vote
Accepted

pset5 load function in dictionary,error in valgrind

You appear to be adding nodes to your trie using malloc, even though the root node is created with calloc. Where do you initialize the fields of the nodes that you allocate using malloc?
1 vote

CS50x 2015 pset5 check50 & submission problem

It is very hard to say on the first glance, but have you done the "case sensitivity" portion of the pset? I had a problem there, which caused the same errors in valgrind. Mind you, that it is not so ...
1 vote
Accepted

Mario counter and output problem

First of all, notice that inside a for loop you can use other variables as well, not only counter. E.g.: for(counter = 1; counter <= height; counter++) { int row_number = counter; int ...
  • 1,150
1 vote
Accepted

Why use `pause` function if `velocity` could be defined to a smaller value in the first place?

Please see this related answer. If you tried your "no pause, low velocity" approach, you'd eventually hit that problem (as I did;)
  • 1,150
1 vote

Is CS50x on EdX in 2015 self-paced?

Yes, a new session of CS50x will begin in January and I would expect it to be just like this year's (self-paced with a December deadline). Keep an eye on the edX homepage at the beginning of January ...
  • 18.4k
1 vote

What date will the 2015 course start? Will it be identical to the 2014 lectures and problem sets?

The 2015 Edx offerings of the course started on January 1, 2015. The Harvard University offerings, including the CS50 Certificate and Course Credit options, start on 26 January, 2015. The option ...
1 vote

What date will the 2015 course start? Will it be identical to the 2014 lectures and problem sets?

Check out What's new? for all the details on what's different for 2015. New and improved lectures! Hopefully. New CS50 Appliance, based on Ubuntu! Updated problem sets!

Only top scored, non community-wiki answers of a minimum length are eligible