Newest Questions

0 votes
1 answer
34 views

Pointer comparison in c

#include <cs50.h> #include <stdio.h> int main(void) { string s = get_string("s: "); string t = get_string("t: "); string u = "Hi!"; string v =...
user1844's user avatar
1 vote
1 answer
22 views

pset 3 Tideman - vote function works differently using check50 than manual testing

My code for the vote function is as follows: bool vote(int rank, string name, int ranks[]) { // TODO for (int i = 0; i < candidate_count; i++) { if (strcmp(candidates[i], name) =...
Oscar Harding's user avatar
0 votes
0 answers
7 views

in scratch how do i make a sprite play a sound when a specific size has been reached?

I'm making this scratch project and I'm trying to make it so that when a sprite reaches size 150, they play a sound. but I don't know how to make it do that. anyone got some helpful information or ...
Cian Storey's user avatar
0 votes
1 answer
22 views

I am getting different test results for the same code

I am testing my substitution.c program, but I get every time different results for the same code. On the very 1.st time I got all good but :( does not encrypt non-alphabetical characters using ...
Michal Kotus's user avatar
0 votes
0 answers
6 views

I can't accsess the form I need to submit for my cs50w projects

when I try to submit the form for my cs50w projects, I get this: what should I do? please help me
Bahar-2009's user avatar
-1 votes
1 answer
31 views

CS50 Week 1 credit card problem set

I am having trouble debugging my code. The logic looks right to me, but whenever I try running credit card test numbers, my code will only sometimes correctly identify the card type. I have tried ...
Oliver Mai's user avatar
0 votes
1 answer
21 views

In pset5 speller : Two variants of same code differ in case sensitivity

//This is case insensitive as it should be unsigned int hash(const char *word) { // TODO: Improve this hash function if ((strlen(word)) <4 ) { return (tolower(word[0]) - 'a'); ...
Ziyankhan Pathan's user avatar
0 votes
0 answers
38 views

CS50(2024) - pset9 Finance. :( registering user succeeds and portfolio page is displayed - expected status code 200, but got 400

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
  • 1
0 votes
1 answer
26 views

PSET5 - SPELLER - CODE COMPILES BUT FAILS CHECK50

// Implements a dictionary's functionality #include <ctype.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #...
Richard Villafana's user avatar
0 votes
1 answer
36 views

CS50 working 9 to 5

Can someone help me? I've been stuck on this one for ages, not sure what went wrong and I don't know how to get rid of the exit code 1, not 0 part import re import sys def main(): print(convert(...
Lucas's user avatar
  • 1
0 votes
0 answers
24 views

debug50 not working. Breakpoints not be recognize

Error message: Looks like you haven't set any breakpoints. Set at least one breakpoint by clicking to the left of a line number and then re-run debug50! I've try setting 1, 2, 3 and 4 different ...
Marcela García's user avatar
0 votes
1 answer
15 views

CS50P coke pset.. I tried many ways to fix this but I can't seem to get right , how can i fix this?

Price = 50 def main(): coins = 0 if coins < price: print("Amount Due: ", due_amount(coins)) else: coins >= price print("Change Owned: &...
Dina Mohamed's user avatar
0 votes
2 answers
19 views

Doing Cs50p Psets 3 Outdated Why is the date when in numbers only outputs 2000-30-20 instead of 2000-03-02

I am doing the CS50P and am doing the outdated exercise. This is the exercise: https://cs50.harvard.edu/python/2022/psets/3/outdated/ My code does everything perfectly, except it outputs single digit ...
SPDS's user avatar
  • 1
1 vote
2 answers
50 views

Python little professor problem set not passing 10 problems check

I am doing the little professor problem set. Here is my code: import random def main(): l = get_level() score = 0 for i in range(10): n1 = generate_integer(l) n2 = ...
Sergei Srednyak's user avatar
0 votes
0 answers
10 views

For the CS50P final project, do the unit tests have to be on the functions at the same indentation level as main?

I Know for the final project of CS50P that you have to have a minimum of 3 functions at the same indentation level as main and then you also have to do unit tests on minimum 3 functions. However, ...
smithycey's user avatar

15 30 50 per page