Questions tagged [cs50x]

The tag has no usage guidance.

236 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
51 views

Students only passing 4/6 the last two showing concatnation error but works locally somebody help

[33mTraceback (most recent call last):[0m [33mFile "roster.py", line 34, in main()[0m [33mFile "roster.py", line 27, in main print(row[0] + " " + row[1]+" "+ ...
2
votes
0answers
205 views

View README.md in CS50 IDE?

I've created my README.md file for my final project. I'd like to check how it looks before submitting. How can I "preview" markup files in the CS50 IDE?
2
votes
1answer
490 views

CS50's Web Programming with Python and JavaScript on edx project submission

On the following course on edx: CS50's Mobile App Development with React Native CS50's Web Programming with Python and JavaScript I have been trying to submit the project work but it is "Coming Soon!" ...
2
votes
1answer
3k views

tideman pset3 cs502020 sort pairs

I started on cs502020 new pset3 -tideman few days ago and haven't been able to figure out how to implement sort_pairs, where one has to sort the struct in an array based on strength of the victory. ...
1
vote
1answer
102 views

pset3, tideman, cs50 2021

I worked with pset3 and I think there are nothing wrong with my code, but check 50 says it has 2 problems on my code. 1.:( lock_pairs skips final pair if it creates cycle 2.:( lock_pairs skips middle ...
1
vote
0answers
39 views

Are we allowed to upload the class solutions to our personal Github account?

I just started the intro course for CS50 and I was hoping to upload my solutions onto my personal Github once completed. I do not remember seeing any rule against this but I wanted to be sure I was ...
1
vote
1answer
696 views

PSET 6 DNA - PROBLEM COUNTING CONSECUTIVE STR SEQUENCES

Im struggling with the PSET6 DNA solution. So far I have opened the dna file and converted it into a dictionary as well as reading the text file. I'm trying to count the consecutive times an STR ...
1
vote
1answer
22 views

Is there a place to submit cs50x or cs50ap feature requests?

Is there a page for cs50 feature requests? Is there an interest for curriculum suggestions from fellow educators?
1
vote
2answers
205 views

Final grade not appearing in cs50.me

I started cs50 in June 2017 and I have finished in December 2018. I submitted my final project and the form on January 17, 2019. I also uploaded the video. I would like to apply for the certificate ...
1
vote
1answer
240 views

implicit declaration of function 'get_int' is invalid in C99

#include<cs50.h> #include<stdio.h> int main(void) { int i = get_int("Integer: "); printf("hello %i\n",i); } Error : implicit declaration of function 'get_int' is invalid in C99 ...
1
vote
1answer
92 views

My implementation of cs50 finance goes wrong with check50

My implementation of CS50 finance has security questions as personal touch on the register page. I believe this is why check50 is failing to detect successful user registration. What do I do in such a ...
1
vote
0answers
81 views

CS50 Pset7 Finance login TypeError: invalid method ''

I got some sort of error when i tried to login with an account that has been registered in my database. I have only done the register function. I can register and automatically login to the website ...
1
vote
1answer
3k views

flask.cli.NoAppException Error when trying to launch web server in pset 7

I'm trying to finish up pset7 and was trying to launch the web server to view the result but every time that I do I get the above error. I'm not really sure what I'm doing wrong. I ran flask in the /...
1
vote
1answer
397 views

Help with PSet 5 Load Function

I hope you are well. I am currently on pset 5 where you have to write a spell checker. I am stuck on the load function. I am able to get stuff into my linked list. when I make and run it, I get a ...
1
vote
1answer
531 views

Pset5 Speller load() function completely stuck (trie)

I am completely stuck on pset5 load() function, have no idea where to go. Can someone please guide me in the right direction? Here is my code: bool load(const char* dictionary) { // TODO FILE* file = ...
0
votes
0answers
6 views

CS50 Finance Error: Expected something but got other

I'm struggling with register function in application.py since I am having error messages in check50 That says: :) register page has all required elements :( registering user succeeds expected ...
0
votes
0answers
11 views

CS50 Week9 Finance I have an error in register

I'm struggling with register function in application.py since I am having error messages in check50 That says: :) register page has all required elements :( registering user succeeds expected ...
0
votes
0answers
17 views

How to sort an array of strengt by victory using bubble sort (pset3: Tideman)

I wrote this code... void bubbleSort(void) { // loop to access each array element for (int step = 0; step < pair_count - 1; ++step) { // loop to compare array elements for (int i = 0; i < ...
0
votes
1answer
13 views

How can I change my certificate name?

I have finished the course in the past month and noticed there were a typo on the certificate name. Is there any way to fix that? Where is CS50 picking my name?
0
votes
0answers
8 views

error: address of stack memory associated with local variable

I have the following function: string encipher( string plaintext, string key) { int size = strlen(plaintext); char ciphertext[size]; // For each alphabetic charaters determine what letter ...
0
votes
0answers
22 views

Why do Escape Sequences in C work differently when I compile code by using GCC?

Why do Escape Sequences in C work differently when I compile code by using GCC? For example, Input: #include <stdio.h> int main(void){ printf("Hello world\n"); } Output in CS50 ...
0
votes
0answers
25 views

Pset9 problem at check50 tests

hello, i've tried "112.00" in my solution and cs50's solution and the result is same "invalid shares" but i don't know why this error occur. i'm really stuck any help please
0
votes
1answer
23 views

Unable to complie PSET3

I tired compiling my code, many time but it shows :( tideman compiles code failed to compile. Can anyone take a look. Another thing that i want to ask is my code well written? Because i feel it's too ...
0
votes
0answers
22 views

CS50X Finance: check50 says buy isn't handling valid purchase. But it is handling fine

I'm wondering what is being tested because its looking for the value 112. expected to find "112.00" in page, but it wasn't found I'm flashing the result of the buy transaction on the index....
0
votes
1answer
30 views

What mistake am I doing in the below "buy" and "sell" code.? I get the below errors from check50

I get the below error from check50: :( buy handles invalid ticker symbol application raised an exception (see the log for more details) :( buy handles fractional, negative, and non-numeric shares ...
0
votes
1answer
8 views

error : function definition not allowed here pls help

i got this error message pls help $ make triangle clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wshadow triangle.c -lcrypt -lcs50 -...
0
votes
1answer
13 views

pset2//caesar : strspn result

I'm struggling to understand : (argc != 2 || argv[1][strspn(argv[1], "1234567890")]) It works, but I'm trying to understand what's going on inside the if evaluation, and the value argv[1][...
0
votes
0answers
59 views

Unable to figure out if my submission on scratch project is completed or not?

I want to submit my scratch project. I have recieved a invite mail by bot50.In which there was a "view invitation" button ,which when clicked on ,redirects me to my github. Now as per ...
0
votes
1answer
18 views

Git hub on Chromebook

So, I've been doin Harvard's intro to computer science I passed week 0 an was pretty much done with week 1 when it said I couldn't run check 50 cause I hadn't authorized it. It gave me a link but I ...
0
votes
0answers
24 views

Getting a segmentation fault on cs50's filter

I'm currently stuck on cs50's pset4 filter (less comfortable). The program compiles perfectly. I have tried out the first three parts of the code (grayscale, sepia & reflection) and their output ...
0
votes
1answer
22 views

CS50 Final Project Help: SQL QUERY...inserting row from one table into another table after button pressed

I have nearly finished the Cs50x course but I am stuck on my final project. I am creating a website called 'Letterbooks' (inspired by Letterboxd) that allows you to log books that you have read. I am ...
0
votes
1answer
29 views

CS50 - PSET 4 - Filter - Edges

//Pixel buffer RGBTRIPLE pixelBuffer[height][width]; //Iterates on every pixel and calculates Gx and Gy for (int i = 0; i < height; i++) { for (int j = 0; j < width; j++)...
0
votes
1answer
44 views

Week 2 Lab (Scrabble)

This is my code: #include <ctype.h> #include <cs50.h> #include <stdio.h> #include <string.h> // Points assigned to each letter of the alphabet int POINTS[] = {1, 3, 3, 2, 1, 4,...
0
votes
0answers
9 views

How can I receive a string from the user to tokenize without having to initialize the array with a constant?

The string in question is names1[] that is initialized with "Anya Ava Sam Mark" int main() { char names1[] = "Anya Ava Sam Mack"; char delim[] = " "; ...
0
votes
0answers
6 views

Error with calculating Egdes in Pset4 Filter (More) Detect Edge problem

// Detect edges RGBTRIPLE new_pixel(int i, int j, int height, int width, RGBTRIPLE image[height][width]) { int redx; int bluex; int greenx; int redy; int bluey; int greeny; ...
0
votes
0answers
33 views

Pset4 - Filter - Blur- some pixels have RGB 0 0 0

I've been struggling with the filter portion of problem set 4 for quite a while. In particular, I've had a particularly persistent bug. As you can see from the Check50 screenshot below, some RGB ...
0
votes
2answers
57 views

Pset4 Blur (filter less) not passing check50

As title says, I am not passing check50 for blur. I am aware that my method is probably extremely tedious and not the best method, but I came up with it myself and would like to find out why it isn't ...
0
votes
1answer
24 views

PSET 8 Finance ":( buy handles valid purchase exception raised in application: TypeError: 'method' object is not subscriptable"

I've been having a problem with CHECK50, I cant seem to find the right object to change. This is the log I get sending GET request to /signin sending POST request to /login sending POST request to /...
0
votes
0answers
8 views

CS50 Games - Am I able to use the latest version of Unity and Blender for the final?

Hello I am going to create a game using Unity, but I would rather update to the latest version than try to learn a 2-3 year old version.
0
votes
0answers
17 views

CS50 final project // LOVE lua bullet following player when shot (space shooter)

So I implemented a shoot function into my game where the spaceship can shoot a bullet every time I press space but the problem is that whenever the bullet is shot out if I move my character at the ...
0
votes
1answer
18 views

PSet3 Tideman , error with updating ranks array

bool vote(int rank, string name, int ranks[]) { for (int i = 0; i < candidate_count; i++) { if (strcmp(name, candidates[i]) == 0) { ranks[rank] = name; ...
0
votes
0answers
27 views

Problem incrementing vote in plurality

EDIT: I FIGURED IT OUT AND IT IS NOW WORKING. My code does not increment the vote. It correctly prints the invalid vote- but its not increment the vote at all. #include <cs50.h> #include <...
0
votes
0answers
17 views

Gradebook does not update after pset submission

I am currently on Week4, but my grade book seems not updating since 2 days ago, after I have submitted pset4 - Filter (More). I have just submitted pset4 - Recover, tho problem sets have shown in my ...
0
votes
2answers
94 views

Runoff Help: Tabulate Handles Multiple Rounds of Preferences

I cannot figure out why I am getting rejected on check50 for ":( tabulate handles multiple rounds of preferences - tabulate function did not produce correct vote totals". I get green ...
0
votes
0answers
39 views

pset4 - filter - less - blur doesn't work

// Blur image void blur(int height, int width, RGBTRIPLE image[height][width]) { //Temp array RGBTRIPLE temp[height][width]; for (int i = 0; i < height; i++) { for (int j = ...
0
votes
1answer
46 views

pset4 - filter(less) - sepia not working

void sepia(int height, int width, RGBTRIPLE image[height][width]) { for (int i = 0; i < height; i++) { for (int j = 0; j < width; j++) { float redS = .393 * (...
0
votes
1answer
26 views

speller returning a segmentation fault, unclear why

this is my dictionary.c implementation. I think the problem is speller since I've been printing my hash values from hash. I also have not yet implemented unload since I think I'm having some ...
0
votes
0answers
10 views

Pset4_ Blur: (more comfortable)Problem, I think there is a small bug, but I can't find it

I was working on my code(sorry for it being so long), then I kept getting the same error and I don't understand why :) blur correctly filters middle pixel :) blur correctly filters pixel on edge :) ...
0
votes
0answers
11 views

cs50 pset 4 filter less help!

this is my code void blur(int height, int width, RGBTRIPLE image[height][width]) { RGBTRIPLE map[height][width]; for (int i = 0; i < height; i++) { for (int j = 0; j < width; j++) { float ...
0
votes
1answer
11 views

pointers and addresses

int m=10; int *ab=&m; printf("address of *ab:%p\n",&*ab); printf("adress of ab:%p\n",&ab); output: address of *ab:0x7ffd85fddefc adress of ab:0x7ffd85fddf00 i ...

1
2 3 4 5