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.
user avatar
  • 1,211
2 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 ...
user avatar
  • 162
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. ...
user avatar
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 ...
user avatar
  • 17.4k
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 ...
user avatar
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.
user avatar
1 vote

My VMware Player and Virtual Box is not working!

Most of the times Vmware Player or Virtual Box doesn't work because virtualization features haven't been enabled on your Computer Hardware. You have to "turn on" this setting on your BIOS setup, a ...
user avatar
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.
user avatar
  • 18.3k
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 ...
user avatar
  • 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 ...
user avatar
  • 63.4k
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 ...
user avatar
  • 63.4k
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 ...
user avatar
  • 144
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 ...
user avatar
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 ...
user avatar
  • 1,677

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