Skip to main content
Filter by
Sorted by
Tagged with
-7 votes
0 answers
104 views

When I run this code: #include <stdio.h> #include <cs50.h> int main(void) { int counter = 0; // Initialitzate counter const int increment_every_time = get_int("What number do ...
user31972567's user avatar
-3 votes
0 answers
78 views

I'm stuck on the sell function for the finance problem. When executing check50 I get this: :) app.py exists :) application starts up :) register page has all required elements :) registering user ...
Rayan's user avatar
  • 47
0 votes
0 answers
26 views

So I am doing the [refueling] problem as mentioned above(https://cs50.harvard.edu/python/psets/5/test_fuel/) and my check50 is giving me this output :) test_fuel.py exist :( correct fuel.py passes all ...
Jacob Lothes's user avatar
0 votes
1 answer
102 views

I'm doing the cs50 basic course task plurality. Now I have the problem that all input I used got the right output, but the cs50 correctness check says otherwise. Is this because I don't use a sorting ...
Flundnus's user avatar
1 vote
1 answer
96 views

I am currently completing the introductory CS course CS50 only and got stuck on the problem "speller" from problem set 5. In this problem, one is given a set of prewritten .c-files, ...
S. Meister's user avatar
0 votes
0 answers
223 views

I'm running into problems resolving the little professor exercice in CS50P. I tested my program manually and I fail to see what could have gone wrong. The error message suggests that there is a ...
user31026571's user avatar
1 vote
1 answer
120 views

I'm working on a program to recover JPEGs from a raw memory card image using C (as part of CS50's "Recover" problem). The idea is to read 512-byte chunks and write each JPEG to a separate ...
Joe Jarvis's user avatar
0 votes
1 answer
63 views

I've been trying to implement the paginator function for about two months now. I've tried many different approaches, but they always lead to new bugs. In views.py, I load the posts and send them to ...
Peter Ditzel's user avatar
2 votes
1 answer
111 views

I'm very very new to programming, and I'm working on the Recover problem set. To create images, I'm using recursion, but there's always a valgrind issue and I can't understand where my code's wrong. ...
Thu Huyền Nguyễn's user avatar
1 vote
0 answers
49 views

Here's my code from the problem set. The copy_img(), malloc_img(), free_img() functions are for copying image to a temporary image and for memory allocation, freeing allocated memory respectively. ...
Chandupa Herath's user avatar
0 votes
1 answer
100 views

Been working on a Credit Pset in python. Decided to use regular expressions. Everything was fine before I got to the Lunh's algorithm part. Now I get traceback errors and don't know what to do with ...
Jötunn's user avatar
  • 27
-1 votes
1 answer
177 views

file to be tested: ''' def main(): use_input = input("Greeting: ").strip() x = value(use_input.lower()) print(f"${x}") def value(greeting): # if greeting starts ...
Cyrus Vali's user avatar
1 vote
1 answer
109 views

I am working on the Filter problem set for CS50 and run into a problem related to check50 (which is the program that checks my solution for correctness). "Blur" function calculates the ...
Jötunn's user avatar
  • 27
0 votes
1 answer
200 views

enter image description hereI am trying to execute my Python code on the command line in the CS50 Codespace IDE. After I enter the command, I get a "can't open file" error message. How to I ...
Ahnam Ahmed's user avatar
0 votes
2 answers
87 views

I'm writing a Python function to validate IPv4 addresses. for a Task of CS50 Python. My function should: Ensure the format is X.X.X.X, where each X is a number between 0-255. Return True for valid ...
Rubab Khaskheli's user avatar
0 votes
0 answers
56 views

I just completed the Problem "Outdated" in QuestionSet 3 of Harvard Python CS50p 2022 version. using Check50 v3.3.11, the automatic check function tried several scenarios and all passed with ...
RL_learning_python's user avatar
0 votes
1 answer
63 views

I'm testing the greyscale function for the filter problem in the Memory problem set. The compiler doesn't seem to have a problem with the code, but when I type in the command (./filter -g yard.bmp out....
Joe Jarvis's user avatar
1 vote
5 answers
139 views

Below this is my code, I have a tuple of different possible extensions that the user can use to open a file. But the files that the user will open will have a name (like cat.zip or daughter.jpg). I ...
Cinder's user avatar
  • 27
-3 votes
2 answers
113 views

The problem set I am trying to solve: CS50P 2022 psets/3/grocery/ My code: def main(): lst = [] try: while True: lst.append(input().upper()) except EOFError: ...
George Baker's user avatar
1 vote
1 answer
121 views

I am currently at week 5 of CS50 at inheritance. I have finished the create_family function and free_family function but when I used check50 to check my work but got a memory leak error in my ...
Zhen Yu's user avatar
  • 11
1 vote
1 answer
442 views

I don't know why it's showing the exit code for test_working.py is 2. Please see the screenshot for the error message I got from check50: Both file works well on my end... I ran "pytest ...
user28845228's user avatar
0 votes
2 answers
80 views

LINK TO ASSIGNMENT: https://cs50.harvard.edu/x/2024/psets/2/readability/ heres my code for the CS50x Readability assignment for an input of "Harry Potter was a highly unusual boy in many ways. ...
Cyrus Vali's user avatar
1 vote
1 answer
97 views

While doing the CS50-task recover i finished everything and ran valgrind over it. Valgrind returns a possible segmentation fault, even though I made sure to never access memory, I don't have access to....
NeeRaX's user avatar
  • 25
0 votes
1 answer
681 views

Description of Issue: I have been trying to write in VS Code but every time I open it after the recent update, the following error message pops up: This codespace is currently running in recovery mode ...
Hamster1303's user avatar
1 vote
0 answers
72 views

Sorry in advance. English is not my first language and this is my first question... Might not follow correct format. I am trying to solve the CS50 filter-more problem with box blur method. I have to ...
Shakib Khan's user avatar
-2 votes
1 answer
76 views

Right now, i'm on a problem that prompts me to make a program based on license plates in Massachusetts, with a few conditions. 1.“All vanity plates must start with at least two letters.” 2.“… vanity ...
william 234's user avatar
2 votes
2 answers
114 views

#include <stdio.h> #include <stdlib.h> int main (void) { typedef struct node { int number; struct node *next; }node; // create the pointer to the main ...
Yi Yangna's user avatar
0 votes
1 answer
47 views

I made the speller program from problem set 5 and it does everything right except for some memory error, which I am not able to solve. My code is as follows: // Implements a dictionary's functionality ...
Aryan Raj's user avatar
0 votes
2 answers
765 views

Goal is to test twttr.py with test_twttr.py twttr.py: def main(): user = str(input("Input: ")) print(shorten(user)) def shorten(word): word = str(word) result = '' ...
Bhaskar Jha's user avatar
0 votes
0 answers
35 views

My code failed valgring test.I tried so many times to figure out the error and I gave up.can someone help me to find the error .. // Implements a dictionary's functionality #include <ctype.h> #...
keshika sathsara's user avatar
0 votes
1 answer
107 views

This is a web application I intend to submit as the final project in the cs50 online programming course, using: python sqlite flask The goal of the project is to provide on-the-fly grading ...
Badger273's user avatar
0 votes
2 answers
112 views

Working on my final project for cs50 Introduction to programming with Python. Trying to implement a programm with a few functions, such as: calculating basal metabolic rate, formatting a list of ...
Jötunn's user avatar
  • 27
0 votes
0 answers
70 views

sort_pairs is not returning successfully when I check the code. Can anyone help point me in the right direction? I spent quite a while on the previous functions getting them correct as I've been away ...
ModernRevolt's user avatar
1 vote
1 answer
78 views

I am working on the Recover assignment of the CS50 course. Getting the error : The recovered image does not match (from the CS50 error checker). In other words, I successfully recover 50/50 JPGs, but ...
nerdkingprime's user avatar
0 votes
1 answer
118 views

#include <cs50.h> #include <ctype.h> #include <math.h> #include <stdio.h> #include <string.h> int count_sentences(string text); int main(void) { string text = ...
user28031585's user avatar
0 votes
1 answer
341 views

I am having problems matching the check50 output with my code, even though it properly orders the meteorites by year and name, from my opinion. Moreover, it assigns the IDs starting with 1 from the ...
Angel's user avatar
  • 23
1 vote
2 answers
112 views

I have a problem with the function blur in the Filter assignment of CS50. I've been stuck with the same error messages and wondering if someone can help point out what I'm missing. Currently the code ...
user27842128's user avatar
0 votes
1 answer
85 views

Can someone help me understand whats wrong with my code Im working on this problem set https://cs50.harvard.edu/x/2023/psets/3/tideman/ bool CycleCheckRecursion(int L, int W) // Checks if there is a ...
dbvs8's user avatar
  • 31
0 votes
0 answers
465 views

I'm in the proccess of completing the final project for CS50P and I want to use Selenium to scrape data from web (seems to be called dynamic content, which is why I saw I couldn't use requests). Note: ...
Gent Gashi's user avatar
0 votes
1 answer
55 views

I was trying to solve the problem recover of pset 4 of cs50x. We are supposed to create a new image whenever we discover the correct header of a jgp file, which i tried to do so. But for some reason, ...
Aryan Raj's user avatar
3 votes
1 answer
154 views

Given below is my solution to CS50's Week 4: Volume. The problem I was trying to solve was to read a .wav file and change its volume based on a comandline argument 'factor'. Problem: When I was ...
Arun's user avatar
  • 41
-3 votes
1 answer
776 views

def main(): time = input("What time is it? ") hours, minutes = time.split(":") minutesToHours = float(minutes) / 60 convert(float(hours)+minutesToHours) def ...
Paul Albert Mina's user avatar
2 votes
1 answer
79 views

In Project 1 of Web Development with Python and Javascript with CS50, I made a form class that should create a new wiki page. It's supposed to get the input before using its "action" to ...
Kuramarik's user avatar
2 votes
1 answer
76 views

I have written the below code for the Edges function for CS50. I pass all test cases except for the 4x4 image. I can't seem to figure out why my code would work for a 3x3 image but not a 4x4 (or an ...
Aaditya Jain's user avatar
0 votes
1 answer
73 views

The program asks the user for a credit card number and then reports (via printf) whether it is a valid American Express, MasterCard, or Visa card number, using luhns algorithm and the requirements for ...
Tobi's user avatar
  • 13
1 vote
1 answer
102 views

I'm working on cs50 and I'm getting this error when trying to run. The program asks the user for a credit card number and then reports (via printf) whether it is a valid American Express, MasterCard, ...
Tobi's user avatar
  • 13
1 vote
0 answers
322 views

I am doing the CS50 course and am struggling to complete Pset9 - finance(2024). When I submit my code, the check 50 displays an error saying ":( registering user succeeds and portfolio page is ...
Bdev's user avatar
  • 11
0 votes
0 answers
72 views

I have been trying to figure out what is wrong with this piece of code and I swear I have checked other people's code in different posts, and it seems this is logically identical. I am sure there's ...
Patrick Crown-Milliss's user avatar
1 vote
1 answer
88 views

I’ve been working on the cs50 filters assignment. All the other ones have had pretty small issues with easy fixes, but this one if completely not working. This project’s intended purpose is to detect “...
Peter Van Voorhis's user avatar
1 vote
0 answers
138 views

I’ve been working on tideman (in cs50) and two of my functions have not been working. I thought my project was functioning just fine, but when I ran check50 I got a :( on all the criteria relating to ...
Peter Van Voorhis's user avatar

1
2 3 4 5
73