All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
9 views

Pset3: Resize (less) loops seems to add extra bytes to headers

I'm working on the CS50 pset3 problem resize (less comfortable). It looks like the resize is working, but I seem to be adding a lot of extra bytes to the header. Looking at the image itself it looks ...
0
votes
1answer
10 views

vigenere not working right

Not sure why its messing up some characters . when i test with the key bacon,it returns: plaintext: Meet me at the park at eleven am ciphertext: Neg zf av uf pcx bt gzrwep oz The t and the r in the ...
0
votes
1answer
12 views

Pset 2 - loop question

im trying to make it so my program returns Success after it checks whether the provided argument is all digits. i can see why this code prints success 3 times if i provide a 3 digit number as the ...
0
votes
1answer
13 views

PSET4 Recover munmap_chunk(): invalid pointer

This my solution to recover problem. It works, but it produces "munmap_chunk(): invalid pointer" error: And Valgrind outputs: ==5906== LEAK SUMMARY: ==5906== definitely lost: 0 bytes in 0 ...
0
votes
1answer
8 views

a:hover and a:active tags not editable in html/css

I'm trying to make a homepage as per the pset5, and want to change the color and decoration of hyperlinks. The a:link and a:visited tags were editable, but not the other two. Here's my code for ...
0
votes
1answer
8 views

I don't think that I will be able to finish CS50 before the end of the year. Will I be able to continue the course next year?

I tried asking this on Quora, but it was never answered. Figured I'd try my luck here.
0
votes
1answer
12 views

Pset 2 - “undefinedBehaviorSanitizer:DEADLYSIGNAL”

So I am on Pset 2, the caesar problem. So far, function main checks to see if there is one command line argument, none, or two or more. I am trying to implement code so that an error is returned if ...
0
votes
1answer
14 views

pset 3 recover - JPEGs don't match

#include <stdio.h> include include int main(int argc, char *argv[]) { //ensure proper usage if (argc != 2) { fprintf(stderr, "Usage: /recover infile\n"); return ...
0
votes
1answer
12 views

pset7 Survey data is displayed on one line, not as a table

I successfully loaded the csv file as a list of lists, passing that list over the the sheet template. Like so: @app.route("/sheet", methods=["GET"]) def get_sheet(): with open("survey.csv", "r") ...
0
votes
1answer
19 views

PSet2 Crack: crypt() returning same hash

EDIT: I solved my problem by entirely re-writing my code. I still am not sure what went wrong. I've been trying to go at the crack problem for a while now and it keeps returning the same hash. For ...
0
votes
1answer
15 views

PSET 3: Resize (less) malloc?

I've been stuck on this problem for weeks now and I've made headway. Copy/pasting has lead me to a doubling the dimensions of the image but not actually printing the image at twice it's size. I ...
0
votes
1answer
8 views

PLS help, not working

So this is my code and I really don't know where I am wrong. I followed the pseudocode but it still doesn't work. It compiles successfully, but it doesn't resize correctly or at least that is what ...
0
votes
1answer
17 views

Problem Set2 (Vigenere)

When I run it, the ciphertext isn't correct since second letter.I don't know where is my problem? #include <stdio.h> #include <cs50.h> #include <string.h> #include <ctype.h> ...
0
votes
1answer
15 views

(pset1 cash) getting correct answer in terminal output, but check50 shows wrong output

After I submitted my cash pset1, it returned three test cases(input of 1.6,23 and 4.2) giving the wrong output(7,92,18), also detailed in check50. But when I try the three test cases with my code, my ...
0
votes
1answer
8 views

Segmentation fault, speller trie pset 4

I'm getting a segmentation fault where i set node *new = malloc(sizeof(node)) I don't understand why I'm getting this fault, i am just allocating new untouched memory with malloc. // Implements a ...
0
votes
0answers
8 views

Downloading CS50 IDE 2019 course files

Where can I download into the CS50 IDE workspace all the code files needed for the 2019 course?
0
votes
1answer
13 views

style50 for python insists on putting two empty lines after comments

Is there a reason for it? Example of style50 suggestions, here the '\n' parts should be added, according to it: # compares lines \n \n def lines(a, b): To me personally this looks awful but maybe I'...
0
votes
0answers
19 views

Speller compiles but doe not work

My Speller hastable compiles but just does not work. Any advice gratefully accepted // Implements a dictionary's functionality #include <ctype.h> #include <stdbool.h> #include <...
0
votes
1answer
15 views

trie speller works on custom dict but misses mispellings on large dictionary

So my speller works fine with a custom dict, but not with the large dict. This is my code in dictionary.c (haven't modified other files): // Implements a dictionary's functionality #include <...
0
votes
1answer
13 views

:( buy handles valid purchase Pset7 Why is this such a problem

I've checked all of the posts on this subject however I can't find an answer. When running Check50 I'm getting then following error: ":( buy handles valid purchase expected to find "112.00" in page, ...
0
votes
2answers
11 views

All words are misspelled in speller ( hashtable )

I've gone through the many posts having a similar question, and none of them match my problem. I've also exhausted all debugging options and seem to head nowhere. All the words are showing misspelled ...
0
votes
1answer
16 views

cant figure out whats wrong with my credit code

#include <stdio.h> #include <cs50.h> #include <string.h> int numlength(long num); int main(void) { long num; do { num=get_long("Number :") ; }while(num<0)...
0
votes
1answer
11 views

pset3 resize (less) - double free or corruption (fasttop)

the code is working with small.bmp, but not with large.bmp and i can't understand why. Even resizing smiley.bmp, when n is too big it's not working. Here's the code: // Copies a BMP file include ...
0
votes
1answer
8 views

Output hangs midway in speller

I've completed writing my code in dictionary.c . When I comepile it, it shows no errors, and no memory leaks occur in valgrind. But when I run the code, it hangs after displaying MISSPELLED WORDS // ...
0
votes
1answer
21 views

Problem with sending data to /check through $.get and then accessing it

So I have made my JQuery capable of making the AJAX request. However, I have a few issues. First, in my IDE console it appears that I'm saying SELECT * FROM users WHERE username =NULL when it ...
0
votes
1answer
43 views

Recover: Problem when writing info into image

I'm having trouble when creating the JPG files. The amount of images created and the name is fine, but the content of the image is wrong. Here is my code: int main(int argc, char *argv[]) { if( ...
0
votes
0answers
18 views

Very Basic JS Troubles!

I don't know why this is proving so difficult but over two hours of googling has not solved my problem! My code is below. I have create a very simple set of mutually exclusive radio buttons. What I ...
0
votes
2answers
26 views

Speller (Hash) not handling substrings properly

All tests seem to pass okay apart from the substrings test.The results of this test are : :( handles substrings properly expected "MISSPELLED WOR...", not "MISSPELLED WOR..." Log running ./...
0
votes
0answers
12 views

How to create a new Workspace in AWS

I have migrated my legacy CS50 IDE from cs50.io but something does not seem to be set up correctly. Many of my old source code files no longer compile and I'm not clear on how to use the help50 or ...
0
votes
1answer
16 views

Cannot Compile Due to Error in cs50.h

I recently migrated my old Cloud9 IDE over to the new AWS format per instructions and all of my files appeared in the new environment. I had only just completed lecture 1 and was starting to make the ...
0
votes
1answer
10 views

cs50 Similarities, the relationship between compare and helpers.py

I write a helpers.py as following. ok to compare to files with lines. but i don't know how to link it with compare.py. I know the staff said no need to open the file, the compare did it. But how do i ...
0
votes
1answer
20 views

CS50's Web Programming - Unable to import books.csv file into database

I'm on a project1, here is the link to it: https://docs.cs50.net/ocw/web/projects/1/project1.html I've successfully made a Table books using my Python script, however when I try to import the "books....
0
votes
1answer
17 views

My JQuery doesn't do anything in /check pset7 finance

So I'm currently working in the /check route and have tried to make it work to no avail. I'm pretty sure the error lies in my JQuery but I don't know how to fix it. Any help is aprreciated. register....
0
votes
1answer
27 views

Unexpected results on resize(less). I could not figure out how is not working the way it suppose to be. Please help

// Copies a BMP file #include <stdio.h> #include <stdlib.h> #include "bmp.h" int main(int argc, char *argv[]) { // ensure proper usage if (argc != 4) { fprintf(...
0
votes
1answer
21 views

Stuck with Unload using trie

I could not unload the dictionary, and still don't understand why. It seems that it is not freeing what I think. I would really appreciate some help, here is my code: // Unloads dictionary from ...
0
votes
1answer
12 views

Pset4: dictionaries with hashtable — every word is misspelled

I'm getting every word is misspelled when I run ./speller dictionaries/large texts/pneumonoultramicroscopicsilicovolcanoconiosis.txt When I run help50: Sorry, help50 does not yet know how to help ...
0
votes
1answer
28 views

pset1:credit, multiplication problem

for some reason my program doesn't multiply (card_number % 10) * 2 for example when card_number % 10 = 6 the output is 6 instead of 12. for(int x = 0; card_number != 0; x++) { if (x % ...
0
votes
1answer
16 views

Pset7: ModuleNotFoundError: No module named 'htmldom'

I'm trying to submit my Pset 7 assignment, and am receiving the error: ModuleNotFoundError: No module named 'htmldom' via Check50. However, I don't receive this error when I run the program myself and ...
0
votes
1answer
22 views

pset1 submission issues

Hi I submitted pset1 mario and only got 65%. I went back to try and fix any issues to get a higher percentage but i just keep getting a lower % each time. I've tried to used check50 to check the code ...
0
votes
1answer
23 views

Why do i get a 400 error with finance login?

I have made the register page. And am now trying to login, to the finance app, however I get a "400 error". I also get a 302, which I'm unsure if is relevant. DEBUG:cs50:SELECT * FROM users WHERE ...
0
votes
1answer
32 views

pset4 speller (hash) - check50 showing “handles substrings properly”

The code works but only not passing substring handling. What is the issue exactly? and any clues on solving it? Thanks. check50 output :) dictionary.c, dictionary.h, and Makefile exist :) speller ...
0
votes
1answer
23 views

Pset2 caesar: Issue with check50

The output is right, but check50 says that it is wrong]1 [removed code per academic honesty guidelines]
0
votes
0answers
7 views

PSet0: How can I resolve the following errors in Scratch?

I created a bouncing ball game in scratch for CS50 PSET0. The game works well as I expected, except for the following bug/errors: The game can be paused by pressing the UP Arrow key on the ...
2
votes
1answer
22 views

Enrolled in 2018, upgraded for certificate in 2019, can I still get the CS50x certificate in 2020?

I first signed for CS50x in 2018, watched the first few lectures and then stopped. I never submitted any problem set back then. This year, I signed up again and this time upgraded for a verified ...
0
votes
1answer
14 views

pset7 similarities - 404 error

I have submitted pset7 Similarities and it received full marks, but when I try testing it by running the server and uploading files, form submission throws a 404 error. What am I missing? (Side note: ...
0
votes
1answer
40 views

Having trouble getting recover off the ground

I'm sorry to do this but I'm fairly lost with this pset3 recover for cs50. I've been researching for hours and am no closer to figuring out how to utilize FILE *outptr = fopen and sprintf(filename, "%...
0
votes
1answer
23 views

Speller (hashtable) check-function marks everything as correct

When using a small dictionary, everything is working fine. But with larger ones I'm getting output like this: MISSPELLED WORDS WORDS MISSPELLED: 0 WORDS IN DICTIONARY: 143091 WORDS IN TEXT: ...
0
votes
1answer
57 views

pset8 2019 - jinja_env.filters error

I have just downloaded the code for pset8 and the line 26 app.jinja_env.filters["usd"] = usd shows an error. The code hasn't been modified yet and when I run the flask run command I get this error: ...
0
votes
1answer
27 views

Pset 1: Credit problem - Checksum?

I'm having trouble with the checksum in the #credit problem. I have no clue on how to operate specific digits within the credit card number (specifically, multiplying the digits in the odd positions ...
0
votes
1answer
13 views

I could not get the desired output because when I click the verdict I could not find who done it

// Copies a BMP file include include include "bmp.h" int main(int argc, char *argv[]) { // ensure proper usage if (argc != 3) { printf("Usage: copy infile outfile\n"); ...

15 30 50 per page