I checked my "CS50.me:Scores" recently, and was surprised to find that the score of my first two programs that I submitted in 2017 changed from 100% to 75%! I understand that they introduced a new criteria called style, but how can I get 0 out of 5 for style in programs as simple as Hello and Mario(less) and 5/5 in the rest?! (considering the style in which I code is unchanged)

Here is the code for Hello that I submitted and got 0/5 for its style:

#include <cs50.h>
#include <stdio.h>

int main(void)
    //Displaying desired output
    printf("hello, world\n");

And here is the proof of whatever I am complaining about is absolutely true! : Style score for codes Hello and Mario(less)

Please tell me whether I actually deserve 0/5 for its style or it is a bug, in which case please fix it at the earliest, it is unfair to decrease my score in this manner!

  • Does your code pass style50? – Blauelf Jan 18 '18 at 18:06
  • @Blauelf Thanks, I didn't even know such a command existed. Strangely enough, they expected me to write more than one comment for Hello! – Kewal Shah Jan 19 '18 at 3:10
  • However when I included 3 comments, style50 didn't give me any error and suggestion, but even after submitting it by submit50 cs50/2017/x/hello the CS50 page shows that I have successfully submitted my code, but my score for style still remains 0/5! – Kewal Shah Jan 19 '18 at 3:17
  • @KewalShah you have to submit with the 2018 commands now. 2017 submissions won't be graded. submit50 cs50/2018/x/hello – curiouskiwi Jan 19 '18 at 4:59
  • @KewalShah Funny thing: My 2017 submission of hello without any comment line got migrated with full score in style :) (doesn't really matter other than for your perfectionism, as you only need 70% if you want the paid certificate, and now that you know style50, it should be easy to resubmit) – Blauelf Jan 19 '18 at 14:27

If you need to submit your code to fix the style, be sure to run style50 and then use the 2018 submission instructions.

submit50 cs50/2018/x/hello

submit50 cs50/2018/x/mario/less
  • Thanks, this solved it. Although they could have just not allowed me to submit using submit50 cs50/2017/x/hello and displaying some error or at least not showed it as a submission in the cs50.me/submissions page. If they had done either of the two, I could have had figured out the problem myself! – Kewal Shah Jan 19 '18 at 14:41
  • @KewalShah there are some students still using the 2017 submission instructions for their class so it can't just be turned off. But I take your point. – curiouskiwi Jan 19 '18 at 22:25

You must log in to answer this question.

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