Questions tagged [help]

The tag has no usage guidance.

20 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
0answers
42 views

I'm STUCK for a good while in pset3 Tideman last 3 functions :(

I'm mostly concerned about the sort_pairs() function atm, but i'm willing to receive answers regarding the whole code. I can't really see what's wrong with the way i coded it in general, but mostly ...
0
votes
1answer
21 views

Pset2 Readability error: expected identifier or '('

I've been trying to compile this code but always get this error "error: expected identifier or '(' " for the line 13 (which is the first one starting with "for") COuld someone help ...
0
votes
0answers
19 views

cs50 IDE Week 1 submission

I have just finished week 1 and now i m trying to submit it, however I cant seem to do it. How do you submit week one (hello.c) on GitHub? I've looked on GitHub and on the Edx site, but still cant ...
0
votes
0answers
40 views

CS50 Pset4 Filter Blur less comfortable

I've tried getting blur done for some time now and I just can't get the border pixels to calculate properly as they continue to go out of bounds. I have noticed that at the start of the program ...
0
votes
1answer
89 views

[Week 2 Substitution.Why does my code fail the checks even if the output is correct?

Here is my code. Apologies if it is hard to understand / messy. When I check50 it shows this. I have a brief idea on how to solve the invalid characters in key but I don't mind some help on that too. ...
0
votes
0answers
13 views

Corrupt sandbox?

Is it possible that my sandbox is currupt? I keep getting an error stating that the compiler wants a ( (not a curly brace) after int main(void). I also get a error stating that the code does not ...
0
votes
1answer
208 views

My DNA code works with the small database but not the large one

My code works perfectly fine with the small database but gives "No Match" for the large one and I can't figure out why. Any help would be appreciated! import csv from sys import argv, exit def main()...
0
votes
1answer
36 views

PSET 2 IDE Compiling Issues

I am now on PSET 2 and moved to the CS50 IDE, however, when trying to set up and test the IDE by writing and compiling a simple piece of code under the title readability, i get the below error. I ...
0
votes
0answers
37 views

Help on Pset5 Speller

bool load(const char *dictionary) { // Open dictionary FILE *dict = fopen(dictionary, "r"); if (dict == NULL) { printf("Could not read.\n"); return false; } ...
0
votes
1answer
30 views

Help in PSET1: Credit. Check50 not showing up

I finished (what I think) is a correct version of credit and when I submit, I only see marks for style and no check50 on the submit50 page. Also, when I do check50 in the terminal window, I get a "...
0
votes
1answer
36 views

PSET4 Resize Only works for half an image

So I thought I finished but the image only half way is written. Not sure what I did wrong but the image scales but only the top half. I tried both ways I could think of for the loop but decided using ...
0
votes
1answer
20 views

Help needed for pointers in C

I need a bit of help for my following program which inputs a string from the user and also prompts from the user a character from that string so as to display the number of times that character is ...
0
votes
0answers
285 views

CS50 pset7 application.py buy - problem: won't insert information into new table

I've tried this a bunch of different ways and I can't get it to work. Everything seems to work. The total price of the bought shares gets subtracted from the users table, but I can't get it to ...
0
votes
1answer
393 views

pset1 Mario Help?

So I understand the bases of the project, what I'm suppose to do etc, but when I prompt the user I get a bug, it also loops forever when I enter a negative integer is that normal? The do and while ...
0
votes
1answer
89 views

PSET3 helpers.c

:( finds 42 in {42,40,39,41} \ expected an exit code of 0, not 1 What can I make out of this error message. Here's my code for binary search,selection sort:
0
votes
1answer
209 views

How do I make comments in generate.c program in PSET3?

In the "understanding" section of find/PSET3 in CS50 2017 how do I open the file generate.c so that I can make (TODO) comments in that. I have ran all the commands for "downloading" section which ...
0
votes
1answer
48 views

Segmentation fault in initials.c pset2 cs50 2017

The following is my code for pset2 initials 2017 and I got a segmentation error. Can someone plse help me debug this. Now here's the output : Hello what's your name? ansh parashar ...
0
votes
2answers
80 views

Help with pset3 runoff

is this correct for vote function..struggled to figure out how to access candidate index so not sure if this is correct..any help/advice would be greatly appreciated bool vote(int voter, int rank, ...
0
votes
1answer
245 views

Recover cs50 Please help!

Can somebody please help with this question? ... and also I tried to debug and apparently it doesn't run my while loop and i don't understand why. while (fread(buffer, 512, 1, fraw) == 1) so ...