New answers tagged

0 votes

Trivia Lab 8 Week 8 - Issues with Free Answer Question

In line 33 I misspelled document as "doctument".
Raheel A's user avatar
0 votes

What link can I use to download a CS50 coding environment in order to practice as the class goes on?

The link is provided in the first lab of week 1: https://cs50.harvard.edu/x/2023/labs/1/ on this page it has you log into cs50.dev The environment is web based.
UpAndAdam's user avatar
  • 526
0 votes

Lab 5 - Inheritance check50 error

Your free_family function doesnt actually free anything, it just recursively calls itself in a manner it should... until it gets to a leaf node and calls itself infinitely. I think instead of ...
UpAndAdam's user avatar
  • 526
0 votes

can anyone help error check my luhns algorithm code?

your first loop won't execute because i = 1 and count = 0, 1 is not less than or equal to 0 so it skips the loop. You need to fix this. even if you change the value of count initially, your value of ...
UpAndAdam's user avatar
  • 526
0 votes

p is assigned a memory first but when create family is called again, isnt the last memory lost as now p points at a new chunk of memory?

No because you arent calling create family against p you are calling it to assign to parent0 and parent1 then you are assigning those pointers into the parents array of p. presumably create_family is ...
UpAndAdam's user avatar
  • 526
0 votes

can anyone help error check my luhns algorithm code?

sum is always 0. How many times does this loop for (int i = 1; i <= count; i++) execute when count is 0?
DinoCoderSaurus's user avatar
0 votes

Incorrect blur for filtermore

Cast the result of your addition to a double, make denom a double instead of a float. You want to make sure the division operation is floating point and not integer division and then perform the round....
UpAndAdam's user avatar
  • 526
1 vote
Accepted

PSET2 Caesar help - Rotate function

This is one of those common cases where the compiler is reporting what it thinks is wrong, but not really what is causing the problem. Let's look at the line in question: if (isalpha(text[i])) &&...
Cliff B's user avatar
  • 68.3k
0 votes
Accepted

HELP! Speller segfault

Interesting problem. ;-) I'll point you in the right direction with a couple of questions. Which line is triggering the seg fault? What word is being processed when it seg faults? What is the value ...
Cliff B's user avatar
  • 68.3k
1 vote

filter-less blur function

i would suggest you trimming your demonstration output down to a single color and making a minimal example of the output we dont need to know every case where you failed.. just a short simple one that ...
UpAndAdam's user avatar
  • 526

Top 50 recent answers are included