Skip to main content

Questions tagged [cs50x]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

stuck on pset 4 filter : blur

// Blur image void blur(int height, int width, RGBTRIPLE image[height][width]) { RGBTRIPLE copy[height][width]; float Sum_Blue = 0, Sum_Green = 0, Sum_Red = 0, surrounding_pixels = 0; for ...
Rishav Jain's user avatar
0 votes
2 answers
26 views

Outdated problem cs50 python

This program is supposed to take as in put dates in two formats: "month/day/year" and "Month day, Year". When I enter dates in the form "September 8, 2024" the program ...
Grace 's user avatar
  • 27
0 votes
1 answer
15 views

pset5 speller - check functions seems to only return false?

so, it seems like the check() function returns false no matter what. when running debug50 it seems the cursor pointer only points at NULL, and i have no idea why and how to fix it. additionally, ...
mrtealover's user avatar
0 votes
0 answers
3 views

Broadcast block before the game stops

https://scratch.mit.edu/projects/1028309902 The goal is when the balloon shoots witch, then a message pops up: Game won. And the game stops. When the witch touches rocketship, then a message pops up: ...
Splendid Digital Solutions's user avatar
-1 votes
0 answers
11 views

Best way to learn cs50

I started cs50x 2024 recently but i wouldn't get productivity from this course and i am in week 2 so give me some tips to solve problems and learn cs50 effectively.
Arslan Gaur's user avatar
-1 votes
0 answers
7 views

‏l completed the first week of the course, submitted the Problem 1, and followed the Course 1 video, but there is a problem with the gradebook

I did not understand why the grading office was not completed. I completed everything, as I followed the video lectures, completed the short videos, completed the Problem 1 assignment, and did not ...
hanaa's user avatar
  • 1
0 votes
1 answer
18 views

week 1 meal time: don't know where my error is

I have coded a solution for CS50's meal time from problem set 1. I can't seem to find my errors, as they don't show, but I feel like I've checked that all my floats are converted, so I'm unsure where ...
Lucas's user avatar
  • 1
-1 votes
1 answer
14 views

"make mario" will not work - PLEASE help I have been trying for 3 hours to resolve this

Every time I try to "make mario" so I can finally move on with the project, it says " mario is a directory."
Meagan's user avatar
  • 1
1 vote
1 answer
11 views

PSet4, Filter-less blurs but gets a lot darker and doesn't match output

I'm having an issue with the blur filter; when working with Duck to understand how to structure my code, I was able to come up with a solution, but the output image was darkened and blurred up until ...
Manny's user avatar
  • 13
0 votes
0 answers
13 views

Pset9 finance final error not solved

Like many others before me, I am stuck at the sell error in pset 9 - finance :( sell handles valid sale Cause expected to find "56.00" in page, but it wasn't found Log sending GET request to ...
Akash Thanki's user avatar
0 votes
1 answer
17 views

Speller valgrind test failing

I am working on the speller problem, I got every test except for valgrind to pass. Here is the valgrind error: running valgrind --show-leak-kinds=all --xml=yes --xml-file=/tmp/tmpbhs1m7v4 -- ./speller ...
TomasSadone's user avatar
0 votes
1 answer
60 views

PSet 4 - Emoji Problem Issue

I have been working on this question for some time now, and really got stuck with few input values, and I am unable to understand the actual error/solve the error. Question: In a file called emojize....
Satyam Lal's user avatar
0 votes
1 answer
19 views

Week 5: Speller. Hash function segmentation fault

after doing "speller" i got a segmentation fault. after using debug50 i managed to find out it was on the last line of the hash function. Can you please help me understand what is the ...
DiamondMonster09's user avatar
0 votes
1 answer
12 views

Wk 1 cash assignment

This is the "pset1" cash assignment. When the user input is and odd number except ending with 5, the code doesn't return anything. Other than that, it works well.
Victor Ukaegbu's user avatar
-1 votes
2 answers
24 views

Programme fails on freeing memory - Pset 5 (speller)

I have functioning code for Speller (problem set 5), but check50 reports a memory leak from the line table[i] = n; Compilation fails when trying to free the node in the unload function: bool unload(...
Luke Sharkey's user avatar
0 votes
1 answer
27 views

grocery list problem, can the test code commit an error?

Here is my program for the grocery_list problemin python cs50. Something I don'tg understand, the test code indicates the last inputs (sweet potato and tortilla) are not outputed in the right order, ...
Grace 's user avatar
  • 27
0 votes
0 answers
22 views

Pset4: Check50 is not compiling my code for Filter-More

I tested my code and all functions seem to be working fine, I don't know what else to do. This is the output from check50, there are no warnings or hints about what I might be doing wrong. https://...
gabi's user avatar
  • 1
0 votes
0 answers
79 views

expected to find "112.00" in page, but it wasn't found

It's my first course. I completed the Finance assignment but got stuck for several days due to an error. When running Check50, it gives "expected to find "112.00" in page, but it wasn't ...
Ігор Петрів's user avatar
0 votes
1 answer
40 views

PSET7 Fiftyville

I have restarted the problem for the third time and I have the same answer. How do I check where I am going wrong. Please help This is my logical understanding of the problem: Thief withdrew money ...
Athi's user avatar
  • 33
0 votes
0 answers
49 views

PSet 9 check not working

Evening, I am getting the following error trying to run check on PSet9. I have downloaded a new empty version tested that and get the same error. I'm thinking this is a fault on the CS50 side but if ...
faarn's user avatar
  • 13
0 votes
2 answers
91 views

PSet 9 Sell handles valid sale expected to find "56.00" in page

Like others I have become stuck with the above error, although the site seems to display the correct info, any help would be appreciated: Python Flask Code: @app.route("/") @login_required ...
faarn's user avatar
  • 13
0 votes
0 answers
15 views

Tideman: Is my thinking correct for sort_pairs and lock_pairs?

I have just finished tideman and passed all checks on check50. However, I wanted to check if my thinking for my code is on the right track, or I got here just by luck. Firstly, for sort pairs, this is ...
Seanie's user avatar
  • 1
0 votes
1 answer
26 views

pset 2 readability problem help

In my program, the wordCount isn't always accurate and I can't for the life of me figure out why the phrase "lets go for a run.I like daffodils" in this order equals 7 words, when it's ...
Alan Shenoy's user avatar
3 votes
2 answers
45 views

Why can you say the name of an array is a pointer to the first element of the array in C?

I have tried to understand why you can say the name of an array is a pointer to its first element in C. Could you please tell me if my understanding below is correct? Both the name of an array and the ...
Yuya Ito's user avatar
0 votes
0 answers
34 views

cs50 dna pset 6 - i dont get why my code always return no match

this is my code. whenever i run this code it always returns no match. i cant seem to get the error. pls help me. import csv import sys def main(): # TODO: Check for command-line usage if ...
dhan8293's user avatar
0 votes
2 answers
40 views

PSET 5 - Speller: Compiles locally, check50 says it doesn't

I know this is one of the most frequently asked questions here, since I' ve spent more than an hour reading posts by people that faced similar problems. But still, I can't tell what's going on in my ...
Stavros Marinos's user avatar
-1 votes
1 answer
113 views

Error: format specifies type 'char *' but the argument has type 'char **' [-Wformat]

I am learning C and I am stuck on this, probably because I am dumb but idk #include <stdio.h> int main() { char name[25]; int age; printf("whats your ...
OMAB2infinity's user avatar
1 vote
1 answer
13 views

pset1 cash compiles but gives unexpected outputs

I'm having trouble figuring out why I'm getting the outputs that I am. I tried to write a function that I can re-use for each denomination of coin, not sure if the problem is there or somewhere else. ...
if_indeed's user avatar
0 votes
1 answer
21 views

Can someone help me understand why we multiply the quarters by 25

// Subtract the value of those quarters from cents cents = cents - (quarters * 25);
Victoria's user avatar
-2 votes
1 answer
24 views

I am so so so new to this and I want to learn, I know my question dumb but I cant see why my code is returning, can you guys help me pls? Thank you! [closed]

I am so so so new to this and I want to learn, I know my question dumb but I cant see why my code is returning, can you guys help me pls? Thank you!
lance dante's user avatar
0 votes
0 answers
35 views

problem with speller problem set 5 code

well i have a problem with speller problem set 5 code. For some reason check50 returns everything wrong but when i debug it seems fine. I don't really know what the problem with my code is. This is my ...
dhan8293's user avatar
1 vote
1 answer
53 views

Problem Set 4 - Recover (timed out while waiting for program to exit)

After spending almost a week working on the code for the Recover exercise, I have finally made it work. However, when I check with check50, I get the error: :( program is free of memory errors timed ...
Stavros Marinos's user avatar
0 votes
1 answer
9 views

scrabble pset: not handling non letter charcters even after iteration with isalpha

hi please the my scrabble pset is not handling non letter characters correctly even after i iterate over every character and con constantly checking if the character is a letter or not with alpha but ...
IsaacChrist Ikpe's user avatar
2 votes
2 answers
47 views

How to properly free memory in the following W3Schools c programming code demonstrating Queue Implementation using Linked Lists

I am taking CS50x I am currently on week 5 DataStructures. I am also in the process of going through the W3Schools tutorial on DataStructures for extra practice and to get a better understanding of ...
Dallas Vienneau's user avatar
0 votes
1 answer
59 views

my Pset 2 Readability is getting the wrong grade level

What am I doing wrong?! When I check my code with check50, I get this: :( handles questions in passage expected "Grade 2\n", not "Grade 3\n" So far, I haven't been able to fix ...
OnAnd17's user avatar
1 vote
2 answers
61 views

Week 9 - Finance - Foreign Key Mismatch

I'm trying to solve this issue for a week and nothing works! in my /buy route, I cannot update the users table with updated cash after a "buy" order is submitted. Here is an example of what ...
Julia 's user avatar
  • 21
0 votes
2 answers
18 views

Why is my code not compiling (simple get_int example)?

I just started this course. I think I am copying exact code from David and in his screen it works but not in mine. What's the issue?. actual code: #include<cs50.h> #include<stdio.h> int ...
DevloperOso's user avatar
0 votes
1 answer
17 views

Problem set 2, substitution -> I don't get why check50 shows that my output is incorrect

#include <cs50.h> #include <ctype.h> #include <math.h> #include <stdio.h> #include <string.h> string cipherText(string key, string text); bool checkKey(string key); int ...
NawafBRQ's user avatar
1 vote
1 answer
15 views

Filter-more edge blue channel

When I run check 50 I get the red green channels correct but no matter what I do the blue channel comes out with seemingly random values what am I missing here? void edges(int height, int width, ...
Tiler99uu's user avatar
0 votes
0 answers
19 views

My cs50 prset2 caesar project rfused to compile,

My cs50 pset2 caesar project refused to compile, what could be the problem. Says can't run until frown turn upside down.
Donald Udofia's user avatar
1 vote
1 answer
53 views

Are boolean variables left uninitialized true or false?

I have a question about why something is being done in the provided stub code for Tideman. here bool locked[MAX][MAX] is left uninitialized early in the program when it is declared. Later every ...
Yuya Ito's user avatar
1 vote
1 answer
51 views

PSET 2 Caesar : help part 3 : ciphertext rotating correctly but not printing out

*Edited to include the latest changes in the code. Can someone help me spot the problem with my code? Below are the results from check50 and the code itself. TIA!! Here is the prior question: PSET 2 ...
AmyG's user avatar
  • 41
0 votes
1 answer
32 views

PSET 4 filter-less problem

I'm confused about the reason I can't pass this test, if anyone can notice what's the cause I would be grateful :) here is the log : :( blur correctly filters 3x3 image Expected Output: 70 85 95 80 ...
rida brahim's user avatar
0 votes
1 answer
63 views

my ajax code doesn't seem to be working

Issue: index.html works fine. I can click on button, but nothing in infodiv changes. So the Ajax code is broken! Files location: I run the files on my desktop visual studio code. All images are inside ...
TrytoLearn's user avatar
1 vote
1 answer
54 views

PSET 2 Caesar : help debugging caesar : continued #2

I'm looking for some (more) help trying to figure out caesar. I finally got it to compile but it's not working properly. When I run check50, it looks like there are two main issues - one, it's not ...
AmyG's user avatar
  • 41
1 vote
2 answers
87 views

Problem With Check50 for problem set "Credit"

I'm currently working on week 6 python and the problem sets are the same to that of pset 1 just with python instead of C. So when I decided to write it I saw that my code in C was extremely bad so I ...
Calapsy's user avatar
  • 13
1 vote
1 answer
19 views

Get a MISSPELLED WORD memory error from check50 PSET5

I've gone through other threads but can't find what the problem is. I don't see any errors when I run valgrind but when running check50 for PSET5 get the following error: Cause Did not find "...
faarn's user avatar
  • 13
1 vote
0 answers
34 views

why it is showing "setting up your code space" when I log in cs50.dev?

I'm quite new to CS50. When I log in to CS50.dev it is showing "setting up your codespace" in the top left corner of the window and nothing opens. It's happening for last 3 days. how to fix ...
Loves Mathematics's user avatar
0 votes
1 answer
22 views

How to get value of variable after a loop

Here is my code to count the sum of 5 and 1 coin of a certain money to be the less. But I have to assign variable c to variable v because if not do so, the program will stop if the money is less than ...
binhsuy's user avatar
1 vote
1 answer
32 views

CS50x PSET1 Credit <class 'pexpect.exceptions.EOF'>

So regarding Pset 1 Credit, I'm having this issue with Check50 My code identifies the card, but there's some error when input given at shorter length: My code are the following: #include <cs50.h&...
Blacov.'s user avatar
  • 11

1
2 3 4 5
23