All Questions

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

speller identifies most words as mispelled

Despite memory problems to be fixed, my code compiles fine and runs but returns almost every word that it checks as mispelled. I have spent so long looking at all this now that I am worried it just ...
-2
votes
0answers
12 views

Trolli ps4 qr code wont work

A qr code on the back of a trolli sour gummy worm bag dosent work.i scanned it on my qr code scanner (htpp://mixerboxlabs.com/qr).how can i actually scan it?
-2
votes
0answers
9 views

Slides screen turned all white

One time on google slides i was presenting,trying to draw,then the screen turned all white!i put this same question on the help center,but this platinum worker said to restart my browser.i was on the ...
-1
votes
0answers
9 views

No restrict mode button on youtube

its connor again.I have a video thats restricted (https://m.youtube.com/watch?v=BQ7NkWiSt78) on youtube.there is no restrict mode button on an ipad.where is it?
0
votes
1answer
11 views

population lab compiles , but wrong years

it compiles but wrong years #include <cs50.h> #include <stdio.h> int main(void) { int n,e; do { n= get_int("Start Size:"); } while (n < 9); do { e = get_int("End Size:&...
0
votes
0answers
10 views

Help checking my implementation of the Minimax Algorithmn for Project 0b in CS50 AI

""" Tic Tac Toe Player """ import math import copy X = "X" O = "O" EMPTY = None util = 0 def initial_state(): """ Returns ...
0
votes
2answers
29 views

PSET5 speller segmentation fault

Can anyone help with segmentation fault. I have tried running debug50 and aparently the fault hits at line "if (head -> next != NULL)" in the load function. Aparently "table" is ...
0
votes
1answer
10 views

Pset4 Sepia Function

I test it and it works but check50 tell :( sepia correctly filters single pixel expected "56 50 39\n", not "56 62 60\n" :( sepia correctly filters simple 3x3 image ...
0
votes
1answer
8 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
12 views

C$50 Finance: “:( sell handles valid sale expected to find ”56.00“ in page, but it wasn't found”

Check50 does not seem to think that the values in my table in index.html are updating correctly. After an afternoon of testing and searching through here and stackoverflow for similar issues, I cannot ...
0
votes
1answer
8 views

I am unable to uppload my file “hello” from the terminal. It is giving me a message about slug which i am setting out below. Please help

Invalid slug for submit50. Did you mean something else? How do i solve this and submit my file. Also what is slug.
0
votes
1answer
30 views

Pset 6 - Dna - My outputs are slightly incorrect. Could someone help me figure out what might be the problem here?

I've been stuck on this question for a week. After countless hours of debugs, I decided to post it here. Please refer to images and code snippets below and kindly explain to me what might be the ...
0
votes
1answer
11 views

API key or look up function error in cs50 finance pset9?

I was working on the implementation of buy and trying to buy stocks when all of a sudden I began receiveing incorrect/invalid stock symbol for every stock symbol I tried(as if the stock symbol was not ...
0
votes
1answer
13 views

CS50 - pset3 - Runoff | Check50 failing print_winner on majority but works correctly for any manual test I can think of

I'm having trouble with getting Runoff to complete Check50. All checks are passing except the two below for the print_winner function :( print_winner prints name when someone has a majority Cause ...
0
votes
1answer
10 views

PSET3 Tideman - What to do with the lock_pairs function?

Can someone please help me with the lock_pairs section of the problem? The lock_pairs function is killing me. I get that you have to compare the pairs to each other and then return false or true in ...
0
votes
0answers
5 views

CS50-ai Minimax algorithm is not responsive

I have implemented my minimax() algorithm. My ai is smart enough to find a solution that leads to a victory. However, it completely disregards the optimal move the enemy could do. This way, it is ...
0
votes
1answer
20 views

PSET 9 Quote function not working correctly

Lookup function always returns "None". Weirdly the same code produced correct results yesterday but as of today it stopped. Any thoughts why? The code for the quoted.html and application.py ...
0
votes
1answer
11 views

Can't render correct font size and isDown movement in LOVE (Pong 3 - Paddle Movement update)

I was implementing Pong - 3 update (GD50) but got stuck in the paddle movement and font size rendering in LOVE. I cross checked the whole code from GD50 repo. On checking LOVE resources, I couldn't ...
0
votes
1answer
21 views

How to fix if statements within event listeners in Javascript

I'm struggling to spot the error in my javascript code in pset8. Specifically the code doesn't execute as I'd expect when using an if statement within an event listener. I've tried talking to the duck,...
0
votes
1answer
7 views

filter more comfortable pset4 edges

this is my attempt on cs50 more comfortable pset4 edges part I cannot find my mistake. I get a mostly white image with some repeating noise as output. I have tried simplifying more complex expressions ...
0
votes
1answer
18 views

CS50 Lab6 taking too long to run when trying to run the code

For Lab6 the code I have written seems to have problems running. Even with check50 it tells me that "check50 is taking longer than usual". I am unable to figure out what is wrong with my ...
0
votes
1answer
16 views

Recover finding all images but not passing check50

I know this has been brought up a few times before but none of the solutions seem to be relevant to the code that I have written below. My recover.c file compiles, executes and returns all 50 images ...
0
votes
1answer
8 views

Segmentation and bool fault in recover.c

Can anyone help? I keep getting a segmentation fault when trying to run recover.c. It compiles fine. My code is below. I do plan to add in the error returns once I can get this to work properly as ...
0
votes
1answer
14 views

Some short commands aren´t working in my terminal window. What could be wrong?

So I´m learning some short commands, like mkdir, rm, cd, cp and they are not working in my terminal window at the moment. The only one that seems to be working is ctrl l as in taking away text These ...
0
votes
0answers
8 views

I cant submit my gd50 assignments

I uploaded my assignment0 in cs50ide in the folder pong. Then executed submit50 games50/projects/2018/x/pong... I gave my git hub username and password. Then an error said:"Sorry, something's ...
1
vote
0answers
13 views

Rails testing with RSpec double: ActiveRecord::AssociationTypeMismatch:

I am new to RSpec (not very experienced yet with RoR neither!) I am working on a web app where I have a Course model. To create a new Course I need to use Teacher and Student objects. I want to create ...
0
votes
0answers
12 views

Level incrementing abnormally in dreadhalls

Regarding the assignment here To display the score I added a Text UI in the canvas and added a SCORE component. I created a class for doing the job. Here is the class. using System.Collections; using ...
0
votes
1answer
6 views

why am i getting an “ use of undeclared identifier 'j' or 'i' ” on the vote and tabulate functions?

shouldn't the compiler consider the 'i' and the 'j' from the for loop in the 'main' function to be the voter and rank ints passed to the functions #include <cs50.h> #include <stdio.h&...
1
vote
1answer
39 views

Minor change in pset6/dna required, need some help or hint

I am really really close to completing pset/dna. But there seems to be some problem in the 'if statement'. Somebody please guide. Before the line of underscores in the terminal, I have printed the ...
1
vote
2answers
105 views

Segmentation Fault on Inheritance, Lab 5

I tried lab4 but I was having issues so I watched Brian's solution walkthrough. The code compiles and all goes well but when I run the program it shows a segmentation fault. debug50 shows a segfault ...
0
votes
1answer
13 views

CS50 Recover pset is causing segmentation fault

This is question is fairly common here, but I haven't seen code similar to mine. This has led me to doubt my screen thoroughly, so I come here asking for help. It doesn't throw any errors with either ...
0
votes
0answers
22 views

Sqlite3 ProgrammingError in Python (Flask, helper.py file)

I am currently working on my final project, a web application using flask, SQL and javascript. I came across this issue: `sqlalchemy.exc.ProgrammingError: (sqlite3.ProgrammingError) Cannot operate on ...
0
votes
1answer
20 views

Is there a way to replace the whitespace in the url whose part is some user input? i.e. User input contains whitespaces Pset1 (Wiki)

I'm doing a project of CS50's Intro to Web Programming with Javascript and Python(Pset1 : Wiki). While creating a new entry/page I'm asking the user for a title and content for the page. After which I'...
2
votes
1answer
27 views

What is the usage of creating DICTIONARY_H in pset5?

I cann't understand when to use the preprocessor directives as (ifndef, define ,etc.)? In dictionary.h, what is the importance of writing those statements? and regarding the reason that was mentioned ...
0
votes
1answer
15 views

For loop proccing too many times

In the code below I check whether or not the string is or isn't a digit. To do that I iterate through every single value entered in the argv[1]. Unfortunately when the entered key is larger than one ...
0
votes
2answers
17 views

Problems with Lab4

everybody. I'm having problems with the Lab4 exercise. I've coded this for the TODO functions: // TODO: Copy header from input file to output file HEADER header; while (fread(&header, ...
0
votes
0answers
7 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
1answer
13 views

Getting “non-void function does not return a value in all control paths”

I am getting this error when trying to compile the below code. "non-void function does not return a value in all control paths" #include <cs50.h> #include <stdio.h> #include <...
0
votes
1answer
11 views

pset4 Recovered image doesnt match

I´m trying to solve the pset4 recover challenge, but i havent been able to make the program recover the full image, only one part of it. What am i doing wrong ?? This is my code: #include <stdio.h&...
0
votes
0answers
27 views

Pset9 Finance| “Index table” doesn't display all the companies

I'm doing pset9 "Finance" and I've designed the two tables in the database, one with purchases and the other with transactions. Now when I render the index page, the shares of only one ...
0
votes
1answer
15 views

PSET4 Filter (Less) Sepia

:( sepia correctly filters simple 3x3 image expected "100 89 69\n100...", not "100 89 69\n100..." :( sepia correctly filters more complex 3x3 image expected "25 22 17\...
0
votes
1answer
9 views

Scrabble doesn't handle numbers

My scrabble program gets broken when I put numbers into it. #include <ctype.h> #include <cs50.h> #include <stdio.h> #include <string.h> // Points assigned to each letter of ...
0
votes
3answers
37 views

I cannot paste images

Every time i try to paste a link in my question, it says "Failed to upload image."how can i make it work?this is the link:https://scratch.mit.edu/
0
votes
1answer
17 views

What is wrong with my nested loop? Why doesn´t it print what it should?

So, I am trying now to make a pyramid of hashtags which in every row has a number of spaces before from the left side of the hashtag. In the program it starts with a prompt from the user between 1-8 , ...
0
votes
1answer
26 views

Runtime Error Unsupported Value in pset9 Finance

I'm doing Pset09 "Finance" and I have been stuck in the "index" function for quite a while. I tried to use the already existing "trans" table but I am getting an error. ...
0
votes
0answers
15 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
12 views

How to get a specific date from a json file in Python?

So I have to get data from 2021 from this website which I am able to but I am unable to get the data from 2021. The following is the code I wrote that gets the dates: for d in data: ...
0
votes
1answer
11 views

toupper not executing

I am working my way through approaching the scrabble problem from PSET2. Right now I just want to focus on getting all my string inputs transferred over to uppercase and then having their values ...
0
votes
0answers
14 views

PSET5: Memory Leak in unload

I am done with the code but valgrind tells my I still leak memory in my unload-function. I already checked if the code is working, and it does. With help50 I get the information that I leak 56B bytes ...
0
votes
0answers
14 views

I do not understand what is happening in this line of code from pset3 tideman

// Update preferences given one voter's ranks void record_preferences(int ranks[]) { // TODO for (int i = 0; i < candidate_count; i++) { for (int j = i + 1; j < ...

15 30 50 per page
1
2 3 4 5
252