6 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 ...
kcw78's user avatar
  • 797
2 votes
Accepted

Why am I failing check50, Cs50p Little Professor

As per the spec: Structure your program as follows, wherein get_level prompts...... Program does not have a function named get_level..
DinoCoderSaurus's user avatar
2 votes
Accepted

My floating point value won't return the decimal point

It appears that the problem is integer division vs. regular division. Since both nice and weeks are declared as integers, the division operation is integer division. When there are no non-integer ...
Cliff B's user avatar
  • 68.8k
1 vote

Getting "using the result of an assignment as a condition without parentheses" error and i don't know why

The for statement has too many semicolons. See: i keep seeing this line underlined with an error that says "using the result of an assignment as a condition without parentheses" If this ...
Cliff B's user avatar
  • 68.8k
1 vote
Accepted

'i' is undefined error

Simple problem. The code is trying to use i as the counter in the for loop, but i hasn't been declared. Try this instead. Note the addition of the type declaration keyword "int". for (int ...
Cliff B's user avatar
  • 68.8k
1 vote

cs50p problemset 7 /working.py

For the last two errors you can solve them with this code: def test_wrong_format(): with pytest.raises(ValueError): convert("9 AM - 9 PM") def test_wrong_minute(): with ...
amirh_far's 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.
curiouskiwi's user avatar
  • 18.7k
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 ...
Cliff B's user avatar
  • 68.8k
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 ...
Tritum's user avatar
  • 1,571
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 ...
Cliff B's user avatar
  • 68.8k
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 ...
Cliff B's user avatar
  • 68.8k
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 ...
Davis's user avatar
  • 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 ...
tox123's user avatar
  • 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 ...
MrBobJamesBob's user avatar

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