All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
1 view

How to change the port that http-server uses

I got in contact with my internet provider and they told me TCP port 8080 is not available for security purposes. Am I able to change the port http-server uses?
willmo's user avatar
  • 1
0 votes
0 answers
8 views

scourgify Lesson6 Problem Set check50 errors

Description I have been working on this solution for a couple of weeks now. I wrote the code to satisfy all requirements described in the problem set in about three hours. The rest of the time has ...
Seamus Connolly's user avatar
0 votes
0 answers
3 views

I converted my Github account which was linked with CS50 to a organisation, now all the progress I made is lost!

I converted the github account that was linked with CS50 to a Organisation account, I assumed since all my repos would get transported to my alt account I would be fine, but it did not and all the ...
Neevraj Kumarpal Bokria's user avatar
0 votes
1 answer
6 views

PSET3 Plurality - void print_winner(void) function

I am having a lot of difficulty with conceptualizing this function and applying this weeks lessons on algorithms. With the code below, what I have been trying to do is to mimic a selection sort, ...
Jeff's user avatar
  • 5
0 votes
1 answer
12 views

Trivia Lab 8 Week 8 - Issues with Free Answer Question

My "Check Answer" button doesn't work for the free response question. I followed the "Not sure how to solve?" video so there might be have been a problem while copying it over. ...
Raheel A's user avatar
0 votes
0 answers
17 views

do not get the chance to fill out any input and select fields

Everytime I run flask run and go to the website, I cant see any of the input fields. Instead, I get the message 'must contain a number'.What am I doing wrong? {% extends "layout.html" %} {% ...
user40089's user avatar
0 votes
0 answers
11 views

What does 'NoneType' error mean?

In finance, I am getting the following error: sending POST request to /register exception raised in application: TypeError: expected string or bytes-like object, got 'NoneType' Is this related to the ...
Sakib Arifin's user avatar
0 votes
1 answer
6 views

Program won't compile w4 lab smiley

When I try to compile helper.c for the week 4 lab smiley get this error message /usr/bin/ld: /lib/x86_64-linux-gnu/Scrt1.o: in function _start': (.text+0x1b): undefined reference to main' clang: ...
Tiler99uu's user avatar
0 votes
1 answer
5 views

Convert comma to point in a Float (C)

I wrote a code that I'm studying where the idea would be to show the change for a certain purchase, however, in the field where the customer enters the price, if I enter, for example: 9,50 instead of ...
NatCorsi's user avatar
0 votes
1 answer
7 views

CS50AI Crossword

So I've been working on the CS50Ai Crossword problem for about a day and a half, and after pouring through my entire code several times, I have been unable to fix a bug with my consistent function. ...
Patrick Connolly's user avatar
0 votes
2 answers
17 views

The code allways prompt to enter a new date when entering the date. How to correct my code in order to have the right answer?

import re months = [ "January", "February", "March", "April", "May", "June", "July", "August&...
Horace's user avatar
  • 1
0 votes
1 answer
7 views

Lab 5 - Inheritance check50 error

Attempted CS50 Lab 5 inheritance. My code looks correct and compiles. I also double-checked with Brian's solution and they were identical. Yet when I passed it through check50, I got multiple errors ...
Jarret's user avatar
  • 1
0 votes
1 answer
13 views

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

I want to be having a hands on coding practice as the class goes on. I was only able to download a helpful App for the very 1st class- Scratch. From subsequent class (that is, from C), a couple of ...
Judeakpah's user avatar
-1 votes
0 answers
12 views

pset9 TypeError: 'NoneType' object is not subscriptable

i am stuck on this for a day and gave up finally! why is this error occuring! tried all sorts of debugging! even open ai is like it's fine! also when i use the website there is no error but cs50 check ...
ztltor's user avatar
  • 1
0 votes
0 answers
12 views

CS50 Finance Index

Hello can someone please check my code. I keep getting going round and round changing stuff but its alway a keyerror: symbol or something else. Thank you @app.route("/") @login_required def ...
Nana's user avatar
  • 1
0 votes
1 answer
20 views

Check if added value corresponds to value/id from another table - SQL Final Project

I'm working on SQL Final project and I decided to create a database for a gym franchise. How can I make sure that a client can join classes only to which they have a card for (correct access level and ...
phnlg's user avatar
  • 1
0 votes
1 answer
17 views

Lecture 9, how to get default value from `flask.request.get` after submitting a form?

In Lecture 9, we learnt about Flask. Prof David taught us in the first couple sections by creating a Python file called app.py, and two similar HTML files that have different code in their bodies, ...
Mohammad muazzam ali's user avatar
0 votes
2 answers
8 views

can anyone help error check my luhns algorithm code?

i wrote this version of the credit card number checking code and it still gives me an error when i check it. apparently, it validates 4111111111111113 and 4222222222223 as visa numbers when theyre not....
sam's user avatar
  • 1
-1 votes
0 answers
14 views

Razorpay magic checkout function not found

I am trying to integrate Razorpay Magic Checkout (Hard Code) Razorpay Documentation onto our Wix website. For that please check these files and pages on my website: https://mynachiketa.com/razorpay ...
Himanshi Gupta's user avatar
0 votes
0 answers
8 views

PSET8 homepage, i am not able to scroll down my homepage

I am not able to scroll down my homepage? <!DOCTYPE html> <html lang="en"> <head> <!--, RECUERDA AJUSTAR PARA USAR EN TELEFONO COMO EN PC--> <meta ...
matteo vignone's user avatar
0 votes
0 answers
9 views

why, if coding in python, get_float accepts an int like 2 but not a float like 0.41?

In the pset6, exercise cash, get_float accepts an int like 2 but not a float like 0.41? This is a snippet from my python code: from cs50 import get_float owed = get_float("Change owed: ") ...
SaPe's user avatar
  • 1
0 votes
1 answer
28 views

Could someone take a look at my finance index? I'm going round in circles and can't find the problem. Everything appears as it should when I test

It's failing on check50 :( buy handles valid purchase expected to find "112.00" in page, but it wasn't found it passes all the check50 tests beforehand, and can't check any of the other ...
temiboy's user avatar
0 votes
0 answers
20 views

Apology not rendering a picture - W9 CS50 Finance

When I do something that should call the apology function, (i.e registering without a password) my site renders apology.html and the correct error code is shown. However the picture doesn't get ...
Fergus Argyll's user avatar
0 votes
1 answer
4 views

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?

person *p = malloc(sizeof(person)); // If there are still generations left to create if (generations > 1) { // Create two new parents for current person by recursively calling create_family ...
Omer Matin's user avatar
0 votes
1 answer
14 views

problems with little professor not rejecting inputs that check50 says it should

When I run locally the program behaves as I think it should. But when I run it through check50 it fails saying that I dont reject inputs that I should reject. import random def main(): while True:...
Mathika Wariyapperuma's user avatar
0 votes
1 answer
14 views

Incorrect blur for filtermore

for this problem, I have opted to use a strategy where I create a 1 pixel border in a copy image with RBG values = 0, to avoid running into segmentation errors when trying to access a pixel. I also ...
Kik's user avatar
  • 1
0 votes
1 answer
17 views

PSET2 Caesar help - Rotate function

I have been getting the error message "expected identifier" for line 65 of my code pointing to the isupper function below. I can't see what I am doing wrong and any help would be appreciated ...
Jeff's user avatar
  • 5
1 vote
1 answer
19 views

Final project - Using an external library (WTForms)

For my final project, I would like to use the WTForms library. Question number 1) Can I do it? Can I use an external library? Reading the instructions of the final project it would seem that there are ...
Marco Panichi's user avatar
-1 votes
0 answers
27 views

cs50 coke machine problem: check50

I've been able to fix the issue I was facing but here I got another one: I get this feedback after checking and I don't understand since the program is working correctly as required and I made sure to ...
Grace 's user avatar
0 votes
0 answers
22 views

CS50 SQL - Meteorite Cleaning : No rows found in "meteorites" table

I have a problem with pset 3 the error I get is "No rows found in "meteorites" table" While there is a data in the table I have searched a lot and repeated the steps of the ...
Mohamed Ali's user avatar
0 votes
1 answer
30 views

HELP! Speller segfault

my speller code compiles but it gets segfault. I'm not sure where I went wrong, my guess is load but I'm not sure. #include <ctype.h> #include <stdbool.h> #include <strings.h> #...
faeyb's user avatar
  • 7
0 votes
0 answers
19 views

Finance question. expected status code 200, but got 400 for register route

@app.route("/register", methods=["GET", "POST"]) def register(): """Register user""" if request.method == "POST" : ...
Bunn Bunn's user avatar
0 votes
1 answer
38 views

Meal Time issues

I'm doing the problem set 1 on CS50P course and on the "Meal Time" problem I can't get a check from check50. The code runs fine if I test manually but check50 returns 'cant check until a ...
FSZer0's user avatar
  • 3
0 votes
1 answer
12 views

load_data function does not accept/process all of the data types it should be processing

I am working on the CS50AI "Shopping" project and received the following comments from the grader. I have checked the specification carefully but didn't spot any issue. The output seems to ...
David Lau's user avatar
0 votes
0 answers
12 views

CS50W Project 1- MultiValueDictKey error when trying to save edits

I am currently doing the Project 1- Django on CS50W (Wiki project). I was able to render the edit page, but I got the "MultiValueDictKey" error when trying to save the edits. This is my ...
valen's user avatar
  • 1
0 votes
1 answer
21 views

filter-less blur function

I am stuck at pset4 filer-less, blur function. The duck and chatgpt say that my code is correct but it doesn't give excepted outputs in any of Check50 result for blur function. //Blur image void blur(...
Arman Chauhan's user avatar
-1 votes
0 answers
21 views

Hi Guys! This is my terminal status please help me to solve this error

I have been facing this problem for several days! This is my terminal status: mkdir: cannot create directory ‘/home/ubuntu’: Permission denied codespaces-289bca:/workspaces/143489709/CS50X/PSET5/...
Zahra Şoarı's user avatar
0 votes
1 answer
19 views

Issues with readability functions

I am having difficulty getting past creating the first function of my code, line 61. I have tried many different variations and I suspect that I am just not understanding a basic concept of the ...
Jeff's user avatar
  • 5
0 votes
0 answers
8 views

how does a text pop up after the user typed in the input field - JavaScript

I trie to make an input field where the user has to type in a century and an image and a text pops up on the website. Please, can you give me hint how to make this pop up happen? const array = ["...
user40089's user avatar
0 votes
0 answers
6 views

Unable to connect to SQLITE SERVER

I just signed up for cs50 sql but have not be able to connect to the database server after i installed sqlite, sql tools, sqlite3 editor and so forth. I have been at it for over a week and still ...
Riyadh Elbaff's user avatar
0 votes
0 answers
18 views

CS50 P-Shirt problem in Unit on File I/O. My output seems exactly as expected, however Check50 declares that the Image does not match

I have imported numpy to extract the mask. Is that not acceptable? with Image.open("shirt.png") as paste_img: a= np.asarray(paste_img) mask = a[:,:,3] img_mask = Image.fromarray(...
Anjali1691's user avatar
0 votes
0 answers
13 views

Why I do not receive full points on the final SQL Project?

I create all the requirments for this project but I still get only 2 of 3 point and can not pass. https://cs50.harvard.edu/sql/2023/project/ Do someone know what is going on ?
PeterWolfe's user avatar
0 votes
1 answer
39 views

game.py rejects out-of-range level expected program to reject input, but it did not!

Here's my code: while True: try : level = int(input("Level: ")) # guess = int(input("Guess: ")) except ValueError: pass ...
MD AKRAM's user avatar
0 votes
0 answers
48 views

Little Professor check50 shows error even though program run completely fine

I'm facing an annoying issue while trying to validate my Little Professor results. I've ran the program several times and it does run as per the specs however when running the check50 it keeps on ...
Gilardino's user avatar
0 votes
0 answers
44 views

parse error: no such table

I'm currently on week 1 of cs50's SQL course, running into some issues with the exercise. Running the code from both the file and the terminal results in a no such table, despite me already ...
Bryant Rusli's user avatar
0 votes
0 answers
8 views

cs50p final project: find a partner to collaborate on the project to-do list with pomodoro

I have finished the whole cs50p almost listening to the lecture and completing the problem set independently except for the final project. Meanwhile, I have learned SQL and web in cs50x, not finished. ...
Xiao Li's user avatar
0 votes
1 answer
33 views

Credit : the checksum is correct for <10 digits, but for14,15,16 digits getting negative checksum

The checksum is correct for less than 10 digits but for 14-16 digits it is coming back negative. What am I doing wrong? #include <cs50.h> #include <stdio.h> #include <math.h> int ...
Parth Munjal's user avatar
0 votes
1 answer
28 views

expression result unused on a subtraction symbol in a do-while loop

popGrowth.c:12:17: error: expression result unused [-Werror,-Wunused-value] do x + (x/3)-(x/4); while (x < y); ~~~~~~~~~^~~~~~ Overall I am trying to complete an action to a start ...
BIR823's user avatar
  • 1
0 votes
1 answer
17 views

Check50 says my answer is wrong. Why? Outdated.py pset3

Issue: Check50 output: My code isn't the cleanest or most optimized, but I'm pretty sure it works. def main(): day = 4000 months = [ "January", "February", &...
I'm Confused's user avatar
0 votes
0 answers
27 views

How do i solve this error "PIL.UnidentifiedImageError: cannot identify image file 'before.jpg'" in the shirt problem in CS50?

This is my code: from PIL import Image, ImageOps, ImageTk import tkinter as tk import os, sys if len(sys.argv) == 3: extensions = [".jpg", ".jpeg", ".png"] extension1 = ...
Alain Nahra's user avatar

15 30 50 per page
1
2 3 4 5
271