Questions tagged [cs50x2020]

The tag has no usage guidance.

15 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
21 views

CS50 recover (fclose giving segmentation fault)

found a few answers to the segmentation fault issue in CS50 recover while closing the file but I couldn't translate the answers to my issue: The last part: fclose(f); fclose(img); is resulting into ...
0
votes
1answer
21 views

pset3 - plurality - failing check50 'print multiple winners' - but my own tests say it works, not sure what I'm missing

I'm not sure why my program is failing check50, when I run my own tests it does seem to print multiple winners, but check50 says it doesn't print multiple winners [removed solution code]
0
votes
0answers
20 views

pset4 (less) filter - blur please help

I've been stuck on this project for a while... I looked at other people's questions but still cannot find our where I did wrong. Can someone help me see where the bug is... void blur(int height, int ...
0
votes
1answer
34 views

Pset1 Cash less comfortable - not running for 0.41 and 0.01

-- hi im running into a problem with my code. It's executed pretty well with many inputs except for 0.41 and 0.01. It didn't print out any answer but just ran indefinitely... #include <stdio.h> #...
0
votes
0answers
26 views

“Error when executing query: too many statements at once” pset 7 movies

Hi! I wanted to know what this error message meant because all my sql statements give the correct output but submit50 shows that i've only got a 2/14 , "Error when executing query: too many ...
0
votes
0answers
40 views

PSET5 dictionaries won't load

I cannot get my dictionaries to load and cannot figure out why. Here is my load function: // Loads dictionary into memory, returning true if successful else false bool load(const char *dictionary) { ...
0
votes
1answer
49 views

incompatible pointer types passing 'string' (aka 'char *') to parameter of type 'string *' (aka 'char **')

Im writing a funtion that takes string as a argument and gives back a integer. This function counts lenght of a string entered at the command line argument. I get an error :" incompatible pointer ...
0
votes
2answers
35 views

PSET4 recover. Why doesn't my counter increase?

Below is my working code but I've a question. If change my char filename[8] to char filename[7] the counter does not increase. Instead, I'll only have 2 output files: 000.jpg and 001.jpg, where 001....
0
votes
0answers
81 views

Cs50x final project ideas

I just finished the web track and now I'm planning to do the final project but cant seem to figure out what I should make for the final project. Can I get some ideas for the final project?
0
votes
1answer
10 views

it is about credit in pset 1 code (no error but doesn't work) it doesnt show amex or visa or mastercard just keeps prompting to enter again

#include<cs50.h> #include<stdio.h> int main(void) { long cc, wcc, d = 1; int sum = 0, n = 0, fd ,ftd; do { cc = get_long(" number : "); } while ( n < 0 ); ...
0
votes
1answer
296 views

Problem Set 8 / Web Track - Finance (Redirect Error)

My functions seens to work fine, but when i have that redirect the user to the homepage (redirect("/")) the application crash and show the error message: 500 internal server error and I don't know if ...
0
votes
2answers
74 views

Pset1 Cash (in C) array increment error

Context; I'm trying to solve Cash by; Taking positive integer user input, saves as float "ch" for change. (this as an implementation detail) Create an array "coin_val" with coin value by descending ...
0
votes
0answers
18 views

Audit access of course

I audited this course on edx two weeks ago. There is no notification about expiration date of my audit access. Why? Is it available for me till the course ending date?
0
votes
0answers
483 views

PSET6 DNA [SPOILER]

during solving the dna problem i had a hard time trying to work out the large database " the small one work just fine" anyway i reached to this abstract solution to get "scores" of the sample dna so ...
0
votes
1answer
233 views

Pset4 filter reverse issue

I am banging my head for the past hour on why this does not work. Basically, testing on the provided pictures, my reverse function does what it says on the tin. However, when I test it vs check50, ...