All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

Unable to access PS0

Unable to access problem set 0 https://docs.cs50.net/2019/x/psets/0/index.html Please advise
1
vote
0answers
11 views

What's wrong with saving the scanline array elements in my code for resize (less), Pset3 problem?

I've solved the problem by recopy method successfully and thanks to many helpful answers to others' questions. Now I'm trying to solve be rewrite method and I think I have a problem with storing ...
0
votes
1answer
5 views

How do I get on the CS50 Slack page?

I'm new to the course and have a few questions before I begin. I wanted to join the CS50 slack page but was unable to get in. Anyone have an idea know how to join? Also, where will I be coding for ...
0
votes
1answer
7 views

Substring SQL Search

I am trying to query the Database for a sub-string, I am substituting a string variable from a form for the query. It is giving me a syntax error. This is the error: LINE 1: SELECT * FROM books ...
0
votes
1answer
12 views

CS50 Speller - Load, Use of undeclared identifier

I've been stuck on the load portion of Speller. Feels like I have a grasp on what I'm supposed to do but I keep getting use of undeclared identifier "head". Any guidance is appreciated. Am I headed in ...
0
votes
1answer
14 views

CS50 Recover: My sprintf keeps making my name variable very large

So to make solving recover more manageable I created a text file with random text and wrote my program files to parse it like I would parse recover. Can someone tell me what I am doing wrong? My newly ...
0
votes
1answer
14 views

Finance DepricationWarning on Check50

My code is failing (or at least not parsing properly) when I run check50. :| quote handles valid ticker symbol check50 ran into an error while running checks! DeprecationWarning: Using or importing ...
0
votes
0answers
7 views

Similarities passes check 50 but highlights identical lines incorrectly

My program passes all the check50 checks. However, I have a problem with the lines algorithm. When comparing compare-1.c against compare-2.c as well as swap-1.c against swap-2.c my program does not ...
0
votes
0answers
9 views

CS50 Recover.c | No idea what and where i'm going wrong | Can't debug or compile in CS50 IDE

I'm trying to debug in CS50 IDE but I'm continuously receiving this error; debug50: recover: No such file. and if I try to compile it says this "make: *** No rule to make target 'recover'. Stop." ...
0
votes
0answers
10 views

CS50 PSET 8 Finance

Still coming up with the following errors in my code, which won't allow me to check for the rest of my functions. I ran Check50 and the following errors are: :( registering user succeeds ...
0
votes
1answer
16 views

Still stuck on Recover Pset3, but getting closer

really sorry, not sure how to format copy-and-pasted code so it renders correctly in this forum. I'm hoping for a hint or two on how to get my Recover program (PSet 3, 2018) to work. I'm able to get ...
0
votes
1answer
33 views

pset4 resize size is correct, but the pixel colors are all wrong

I'm trying to resize the image using the "recopy" method Zamyla stated in the video, but I can't figure out why the colors are all messed up. I've tried looking at other questions, but it hasn't ...
1
vote
1answer
15 views

CS50 mario pset 1 error: expected '(' after 'do/while'

Here is my code: #include <cs50.h> #include <stdio.h> int main(void) { int n; do { printf("height: "); n = get_int(" "); } while { (n < ...
0
votes
1answer
8 views

CS50: 'resize less', problem with padding

The resize algorithm works well for smiley pictures but fails for 'small.bmp'. I suspect that the problem is about padding, but I cannot figure out what is the problem. // Copies a BMP file ...
0
votes
0answers
5 views

smtplib.SMTP not working in IDE but works locally

Code: import smtplib server = smtplib.SMTP('smtp.gmail.com:587') It works with my local python setup but ide shows following error: File "/home/ubuntu/project/application.py", line 38, in contact ...
0
votes
0answers
14 views

How can I submit project0 using github?

I just finished my first project on CS50(web programming with python and javascript) using visual studio code. But am finding it difficult to submit using github. Please someone should help me. I don'...
0
votes
0answers
18 views

Prompt a user for a number. My code has an endless loop

i am trying to build a code in which the user should input a number between 1-5. In any other case the program should request the user to input a new number. My problem is that the program is going ...
0
votes
1answer
25 views

(Caesar) My output is completely correct and satisfies every mentioned case, But my score is only 46%. Why?

I had already submitted Caesar once and got 45%. I corrected the code, the output, but the score is now improved to 46%. Here's the code : #include <cs50.h> #include <stdio.h> #include &...
0
votes
0answers
8 views

Survey, problem with sheet.html and post_form

I finish my survey, but still have some bug in it. In my post_form, if I use the writer.writerheader() before writer.writerow in my csv file all information writing like this: name,animals,power ...
0
votes
1answer
13 views

How to configure VS Code to compile C used in CS50?

I was wondering how to do it, so I intended to proceed on two different machines running Linux (Ubuntu 19.10 developer version), to see how to do so. Any additional help most welcome!
0
votes
0answers
7 views

Issue with permutations in PSET2: Crack

Am having trouble with working out how to permute characters beyond a password length of 1. My script accounts for an indefinite amount of characters. Below is the script. #include <cs50.h> #...
0
votes
0answers
5 views

Getting AttributeError: 'NoneType' object has no attribute '_instantiate_plugins'

Still getting the problem with instantiate plugins after defining the DATABASE_URL before using it directly. This is the code that I'm using: from sqlalchemy import create_engine from sqlalchemy.orm ...
0
votes
1answer
23 views

I'm stuck on Resize (Less). Please help!

I can't seem to figure out what's wrong with my resize code - it only resizes correctly for n = 1. I've checked the header data when n = 4 compared to large.bmp, and it's the same. If anyone knows ...
1
vote
1answer
25 views

PSet1: Mario - Less Comfortable (Too many periods)

I recently just tipped my toes into the water of CS50 last week, I'm completely new to this so I need a bit of constructive critisism. I was completed stumped at first, but I got somewhat close - not ...
0
votes
0answers
36 views

Submit50 & Check50 not submitting most upto date version of pset

I've been attempting to submit my Caesar cipher solution to no avail; my first submit worked fine but then I noticed that my code was well full of bugs. So, I fixed it, and submitted again. Following ...
0
votes
1answer
12 views

Why the <p> need not be closed?

I am receiving this baffling error in the validator: Error: No p element in scope but a p end tag seen. From line 13, column 11; to line 13, column 14 </p>↩ <!DOCTYPE html> <...
0
votes
1answer
12 views

Coin counter help

I'm stuck and I don't know how to make it count the amount of coins minimum. I would like some help on my code please. Thanks. #include <stdio.h> #include <cs50.h> #include <math....
0
votes
0answers
8 views

Trying to build an archive function for a student management app with Python and flask, need some help please

I have a list of active students which was added with a form. I'm now trying to add the ability to archive a child as soon as he/she's no longer active. I've been struggling with this for some time ...
0
votes
1answer
5 views

My jinja not working like it should pset6 survey

So I'm currently working on pset7 survey and am about to finish. I just have to display my table in sheet.html. When run, I only get the headers right and afterwards I get nothing. Am I doingsomething ...
0
votes
0answers
33 views

Pset4 bool check, stuck while loop. Can anyone help me

I used the debug50. It seems that things stuck in the while loop. Code just stoped here and doesn't print any of misspelled word. Here is my code. bool load(const char *dictionary) { // ...
0
votes
1answer
28 views

CS50 Finance 2019 Check50 errors

I have been stuck on this for a while now. No matter how I change my code nothing works it's the same 3 errors. I think the issue is in my register.html but I can't find anything wrong with it. Here ...
1
vote
2answers
83 views

What's wrong with my Resize (Less) code? Pset3

I've been stuck with Resize (Less) using the "Rewrite" method for days but just can't seem to figure out what's wrong with my code. My code compiled OK, and has no problem with n=1. But it can't ...
0
votes
2answers
28 views

CS50 Finance Check/Register Issues

I keep getting the same errors. I'm pretty sure the reason most my code won't work is because of my check function. I don't if it's not communicating well with my register function (which I am ...
0
votes
1answer
30 views

Stuck at pset 1 mario problem

I'm Stuck at the PSET 1 problem of CS50. for height 3, my output is coming as ..# ..## ..### Can any peers or experts, look into my code and help me out. [EDIT: code removed for Honor Code ...
0
votes
1answer
10 views

AJAX form validation

I am trying to validate my form, I am having some difficulty. I have tried two the methods, I like the keyup method but think it will be a bit too complicated. One of the biggest issues is submitting ...
0
votes
1answer
14 views

how to switch to normal mode when using vim in CS50 IDE

how to exit vim insert mode in CS50 IDE? typing esc or ctrl+[ doesn't work.
0
votes
1answer
13 views

do not understand why check function checks new word against dictionary

I am trying to implement the check function of Speller in CS50. The code below may or may not work. But the thing that gets me is that I don't understand the bit : if strcasecmp(cursor-> word, ...
0
votes
1answer
18 views

Pset8 Finance - request.args.get() is returning None in check()

I've been banging my head on writing check(). My request.args.get() is returning None and therefore unable to query the username in my javascript. Here's a screenshot of my console: I'm expecting: ...
0
votes
1answer
11 views

Define buy or selling function

I am working on pset8 everything is working I have found a snippet of my code which is identical for buying and selling only difference is to subtract or add to current cash. Can someone point me in ...
0
votes
1answer
46 views

pset3 “Recover”

I am facing some troubles, only one blank image is generated , any help? // Program to recover lost photos. #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <...
0
votes
0answers
12 views

Is it possible to run cs50 offline for multiple users?

I want to know if it's possible to run CS50 offline for multiple users. I want to use it as a environment in my class. Sorry if it's a noob question.
0
votes
1answer
18 views

Why is fscanf giving me an undefinedbehavioursanitiser error?

my code looks like int main(void) { char word[45]; FILE *dictionary = fopen("dictionary/small", "r"); fscanf(dictionary, "%10s", word); fclose(dictionary); } Inside of ...
0
votes
1answer
24 views

help with pset3: resize (less) resizing horizontally

I am following the pset3 walkthrough and currently at the point where I have to resize horizontally. https://pastebin.com/fHeaYgze My approach is to currently rewrite the resized bi headers as bir (...
0
votes
1answer
18 views

why is check50 returning error of lack of forensic image and some jpg not found

this is my code // Open the card.raw file and check for NULL FILE* card_ptr = fopen("card.raw", "r"); [admin removed rest of code] and this is my error message generated from check50 :) recover.c ...
0
votes
1answer
30 views

Pset4 Memory Leak in Speller

I'm working on Speller with a hashtable, and my code compiles, but when I run valgrind it tells me that I'm trying to use an uninitialized value. ==10864== Conditional jump or move depends on ...
0
votes
1answer
24 views

PSet 3: resize (less) bfsize error

I'm SO close (I think!) to being done with "Resize (Less)" after a grueling run. After running check50, I'm a bit kerfuffled. Hexadecimal form of output file seems correct, as do the values of and ...
0
votes
0answers
23 views

Stuck on pset3 resize (less comfortable). Could anyone please take a look at my code?

// Copies a BMP file include include include "bmp.h" int main(int argc, char *argv[]) { // ensure proper usage if (argc != 4) { fprintf(stderr, "Usage: ./resize n infile ...
0
votes
1answer
22 views

having problem in check() in cs 50 finance

The problem is i dont know why my script code is not not executing,it registers already registered users below is my register.html {% extends "layout.html" %} {% block title %} Register {% ...
0
votes
0answers
7 views

I can't find the code in the DOM short by Doug link below. Can someone help me find the code or supply the code? ? I have tried googling

I can't find the code in the DOM short by Doug in the link below. Can someone help me find the code or supply the code? I have tried googling. Near the 16:05 mark. https://www.youtube.com/embed/...
0
votes
1answer
14 views

Arrays and their sizes in C

I am having problems related to arrays and their sizes in C. There's something I am doing wrong, but I don't know what exactly. Here is a sample of the code: #include <stdio.h> #include <...

15 30 50 per page