Hot answers tagged

4 votes

What's wrong with this code?

This line causes it: for (spaces = height - rows; spaces <= height; --spaces). While spaces is less than height, print a space and make spaces smaller. It is an infinite loop.
  • 1,211
3 votes

cs50p problemset 7 /working.py

This scenario has been described in the CS50 Python ED forum. When you get this error message: :( correct working.py passes all test_working checks expected exit code 0, not 1 It means check50 is ...
  • 624
2 votes

Approaching pset1?

I'm really struggling to come to terms with the idea of how to use GetInt. You can imagine "GetInt" to be a kind of a mailman that delivers the "Int" (that the user has entered) to you/your code. ...
2 votes

Approaching pset1?

Welcome aboard! I'm definitely struggling quite a bit - I'm at a loss for where to start with my Mario project. I recommend you read the specifications in the specification page carefully and ...
  • 17.6k
1 vote

Problem Sets Not Following Week Headers

If I recall correctly, this follows the actual Harvard CS50 calendar in the syllabus. Week 0 is the 1st week of class, so there is no pset to work on. The first pset gets released late on Friday of ...
1 vote

I cannot submit my problem set 0?

i had encountered the same problem. I remember the use Safari to assess the website and it was not successful many times. then I try Google chrome and it was successful.
1 vote

Not able to link cs50x with Edx

You probably ran into the (now resolved) Auth problem described here: https://cs50.statuspage.io/incidents/gwmwslhlmszx Can you try again? It should work now.
  • 18.5k
1 vote

Pset2 Readability error: expected identifier or '('

The problem lies here: int letter; int countcharacters(char input);} That closing curly brace pairs with the one that opens main(). The compiler sees this as the end of the main program and is ...
  • 66.7k
1 vote
Accepted

CS50 pset4, I have problems with getting the blur filter to work

When you divided here: image[i][j].rgbtRed = (sumRed / pixCount); you'll problably get a decimal point result. The problem is that working with int variables will result in a truncated result, the ...
  • 1,561
1 vote

What error is resulting in incorrect values for change?

The error is using a float to keep a running track of the change. This is, in fact, the whole point of this exercise. You should go back and review all of the material related to this pset and all ...
  • 66.7k
1 vote

Problem Set 1, Cash: maths issues

Most important question: did you resave the corrected code and remake it before checking it? The IDE does NOT automatically recompile your code. I don't think it's an issue with the code above. I ...
  • 66.7k
1 vote

pset2 segmentation fault

While working with your code, I seemed to notice that i++ would keep going on forever as long as the string was not invalid. This would mean that as it keeps looping and looping, eventually you would ...
  • 144
1 vote

I have some questions with Scratch.(I am a beginner)

If I understand your question correctly, you don't know how to get one sprite to communicate with another. Different scripts can either communicate using variables or by events. In your case, I would ...
  • 140
1 vote
Accepted

I don't know why my code isn't working? | Pset2 CS50

In your maze of if and else if statements, you are calling your oText a lot. As you probably know, this is an array. What do you think will happen when you use (int) array? I mean, you can't make an ...
1 vote

Yet again, problem with padding

One of the problems is that you're not resizing vertically. What you're doing is: 1) read one triple and write it as many times as needed by resize factor. Repeat this until a whole scanline has been ...
  • 1,677

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