Questions tagged [error]

The tag has no usage guidance.

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

Error when calling seconnd function - expected expression

I'm trying to call my encryption function and am getting an undeclared identifier error. Not sure where i'm going wrong. Code: #include <cs50.h> #include <stdio.h> #include <ctype.h> ...
user avatar
  • 1
0 votes
0 answers
13 views

Need help with my terminal, I have been strugggling with it one day😭

I don't know what's wrong with my terminal today. Where is my dollar sign??? With these weird" /workspace/..#", I run ./sort1 reversed10000.txt and the output wil be time: can't execute './...
user avatar
  • 1
0 votes
0 answers
11 views

An error message that I have been getting since I tried to update cs50 codespace

For some strange reason I have been getting the following error (in the picture) since I tried to update the cs50 codespace. Do any of you have any idea how to resolve this? Also now the terminal is ...
user avatar
0 votes
1 answer
63 views

CS 50 Pset 1 cash: non-void function does not return a value

I have finish a program and it can run smoothly on other platform like replit... But one I run it on vs code it shows the following error and it also have something weird happen when I run check 50 ...
user avatar
0 votes
0 answers
18 views

Why am I getting the 404 error everytime i try to use the the server?

In all the tasks where I need a server, I am getting stack. If I run http-server or flask run (in different tasks), I get a 404 error. please help me fix this and check my work.
user avatar
0 votes
1 answer
180 views

CS50P - Error in pset2 (Coke)

In pset2 (Loops), 2nd problem ("Coke"), I believe there's an error in the 4th test that check50 performs: it requires an output of $0.50 after the user entered $0.30. The full price is $0.50,...
user avatar
  • 1
1 vote
1 answer
42 views

VS code malfunction

On this morning when I open my vs code I found this suddenly pop out. I ignore it and start coding. Afterward I found that I can save my codes, so I code it in notepad and I save it to vs code using ...
user avatar
0 votes
0 answers
44 views

Lab 3 error message: Incorrect assignment of sorts

When I try to submit my answers I get these messages on running check50: :) answers.txt :) answers all questions :( correctly identifies each sort Incorrect assignment of sorts. I'm not sure I'm ...
user avatar
0 votes
2 answers
23 views

defining a char variable, why am i getting this error?

#include <cs50.h> #include <stdio.h> int main(void) { int height; do { height = get_int("height: "); } while (height < 1 || height> 8); const ...
user avatar
0 votes
0 answers
98 views

Getting "undefined reference to `get_string'" error despite having included cs50.h

I'm just starting with Week 2's problem set, in this case readability and can't get past this first step I get this error message /usr/bin/ld: /tmp/cc7uIkNX.o: in function main': hello.c:(.text+0x1e): ...
user avatar
1 vote
2 answers
35 views

PSet1 - Coins issue

While doing the Coins problem set, I am receiving an error while trying to compile and I can't figure out what the issue is. "cash.c:53:27: error: variable 'cents' used in loop condition modified ...
user avatar
1 vote
1 answer
109 views

Compiling Error: Make function not working

I'm just starting out, using VS code as my IDE. Here is my code #include <stdio.h> //here were are setting up a function //meow(void) means it takes no arguments //void at the beginning is ...
user avatar
0 votes
0 answers
160 views

Can't Run Debug50 on VsCode!

Referencing the issue below: Can't run debugger
user avatar
0 votes
1 answer
97 views

Tideman - "lock_pairs skips final pair if it creates cycle" - Almost there!

Getting good results in test cases. Hoping someone can point out where I'm going wrong! I'm also open to general code comments. // Lock pairs into the candidate graph in order, without creating cycles ...
user avatar
0 votes
1 answer
14 views

Pset0 - error & fatal error

How can I resolve this problem? Is it a library problems?Is there any mistake in setting? Appreciate before hand! https://i.stack.imgur.com/NVXxo.png
user avatar
  • 1
0 votes
0 answers
51 views

pset1 Mario error: expected identifier

I really tried to find the solution for myself, but after a lot of hours I give up. Here is the error message and code if its possible please help me:) *#include <cs50.h> #include <stdio.h&...
user avatar
0 votes
0 answers
31 views

PSET9 - TypeError: 'NoneType' object is not subscriptable

My code for pset9 - Finance runs well on my IDE but some how Check50 still reports a log in error, which I don't know why since log in function was provided in the distribution code. Here is my code: ...
user avatar
2 votes
1 answer
493 views

Can't run debugger

I'm trying to run the debugger, by typing into the terminal: debug50 ./filename But unfortunately an error comes up in the terminal, saying: Failed to connect extension server on port None. Please ...
user avatar
0 votes
1 answer
12 views

How can i fix it

Whenever I press the keyboard, this error report always pops up, how can I solve it? I have tried restarting the IDE, but it doesn't seem to work
user avatar
-1 votes
1 answer
26 views

PSET4 - Filter(more)- Edges- Check50 error

#include"helpers.h" #include <math.h> int check_cap(int num); void edges(int height, int width, RGBTRIPLE image[height][width]) { RGBTRIPLE image_copy[...
user avatar
0 votes
2 answers
44 views

PSET6 Readability "unsupported operand type(s) for *: 'float' and 'NoneType'"

I'm getting "unsupported operand type(s) for *: 'float' and 'NoneType'" error for line 34: "s = (100 / words) * sentences". Not sure what to make of this since count_sentences(text)...
user avatar
0 votes
1 answer
20 views

What`s my code not work?

The code is #include <stdio.h> int main(void) { printf("hello, world"); } but when i execute ./hello.c the result is ~/ $ ./hello.c ./hello.c: line 3: syntax error near ...
user avatar
0 votes
0 answers
16 views

Finance: how does the "errorhandler" work?

I am trying to understand the errorhandler function in pset9 finance. In the given application.py: # Original version def errorhandler(e): """Handle error""" if ...
user avatar
  • 1
0 votes
1 answer
30 views

Mario.c:19:36: error: use of undeclared identifier 'row'

I am not sure what I am doing wrong... I made 16 same errors of different identifiers but I am not sure why
user avatar
0 votes
1 answer
34 views

Why is it asking me to declare (s) when is has been declared already?

#include <stdio.h> #include <cs50.h> #include <math.h> #include <string.h> #include <ctype.h> bool is_valid_key(string s); int main(int argc, string argv[]) { if (...
user avatar
0 votes
1 answer
36 views

PSET5 Why Speller can't load dictionary? (included HASH function in case it's relevant)

// Load function bool load(const char *dictionary) { char word[LENGTH + 1]; FILE *file = fopen("dictionary", "r"); if (file == NULL) { printf(&...
user avatar
0 votes
0 answers
25 views

I have an error in register function (Week9 Finance)

I would like to ask for your help please with an error I keep getting on my code for the week 9 Finance. I have been receiving like this Here is my login/ register function below. @app.route("/...
user avatar
  • 1
0 votes
0 answers
264 views

Invalid slug error

When trying to go through the steps in lab 1 for hello.c. I am getting the below error ~/ $ check50 cs50/problems/2021/pset1/hello ...
user avatar
0 votes
1 answer
71 views

pset9: finance // jinja syntax error in index

I'm working on my index page and I have two errors. For the first, I'm not sure what's wrong. It seems like it's something with my return statement but I have no idea what's wrong with it. File "...
user avatar
  • 3
0 votes
1 answer
42 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 -...
user avatar
  • 1
0 votes
1 answer
307 views

debug50 error in online IDE: 'MODULE_NOT_FOUND'

While working on pset3 tideman problem, I attempted to use the debugger and got this error in return. the debugger opens and then closes immediately, and generates the below text. How can i resolve ...
user avatar
0 votes
1 answer
270 views

Why does it keep saying error: no such file or directory?

I am on part 1. The hello program worked and I'm trying to do the long int addition. It keeps saying "no such file or directory" but I can the the file with my own lion eyes and am stumped ...
user avatar
0 votes
1 answer
39 views

PSET6 - Readability. When I am running my program it is showing me this error again and again

The error I am getting Traceback (most recent call last): File "/home/ubuntu/pset/pset6/readability/readability.py", line 46, in <module> main() File "/home/ubuntu/pset/pset6/...
user avatar
0 votes
1 answer
30 views

My program is not is not able to import strlen from string.h

I am working on problem set 6 - Readability (python). When I am compiling my code the following error keeps coming. Traceback (most recent call last): File "/home/ubuntu/pset/pset6/readability/...
user avatar
0 votes
0 answers
25 views

CS50 Tic Tac Toe Minimax problem with Nonetype error

I'm having a recurring 'Nonetype object is not subscriptable' error on the minimax problem. Depending on how I setup my debugging, it either appears as an error on runner.py line 85 (trying to ...
user avatar
  • 1
0 votes
1 answer
144 views

Pset3 - runoff - print_winner and find_min error

After I checked my code using check50 cs50/problems/2021/x/runoff, I received the following error messages for my bool print_winner(void) function and int find_min(void) function as follows :( ...
user avatar
0 votes
1 answer
35 views

pset5 speller all words are spelled wrong

new error: most words are seen as spelling error Here's my full code: (UPDATED) // Implements a dictionary's functionality #include <stdbool.h> #include <string.h> #include <stdio.h>...
user avatar
1 vote
1 answer
33 views

pset4 filter greyscale error

When I run "make helper," the following error comes up: "undefined reference to `main'" and "linker command failed with exit code 1" What am I doing wrong?? thank you in ...
user avatar
0 votes
2 answers
70 views

make: *** No rule to make target 'cash'. Stop

I have this problem. I'm trying to run this program but it keeps showing me this message and it confuses me since I have the file cash.c saved in the pset1 directory and cash (folder). I've looked for ...
user avatar
0 votes
1 answer
18 views

GET request for a file with a space in the name

When GET was trying to find a file named DS C0001, this was the error code: INFO: 192.168.16.37 - - [24/May/2021 13:14:10] "GET /static/images/DS HTTP/1.0" 404 - I could simply reject all ...
user avatar
0 votes
1 answer
43 views

readability pset2 multi error

I replaced semicolon with a coma as sugested erlier. I compile the code but when I enter the text to receive Grade 3 nothing happens, again anny sugestion. Thanks. #include <cs50.h> #include <...
user avatar
  • 37
0 votes
2 answers
48 views

pset5 speller passess all checks except valgrind. no memory leaks but errors raised. confused

// Implements a dictionary's functionality #include <stdbool.h> #include <cs50.h> #include <stdlib.h> #include <stdio.h> #include "dictionary.h" #include <strings....
user avatar
0 votes
1 answer
127 views

CS50 IDE Cash feeling less comfortable

I hope you could help me with the cash, less comfortable problem. I'm receiving this error message but I'm not sure what's causing the error message. Thank you very much in advance!
user avatar
0 votes
1 answer
62 views

CS50 Task meow.c custom made function doesn´t work

I think I did exactly like he showed. But there comes an error message. When running it through help50 make meow it says: You seem to be passing in too many arguments to a function on line 8 of meow.c....
user avatar
0 votes
1 answer
1k views

pset9 Finance "jinja2.exceptions.TemplateSyntaxError: expected name or number" error

In my index function, every time I try "flask run" it outputs that error (jinja2.exceptions.TemplateSyntaxError: expected name or number). Everywhere I've checked most people have been ...
user avatar
0 votes
1 answer
115 views

Expected Expression Error

I have been working on cs50 problem set 2 and I have come across the error readability.c:35:1: error: expected expression else if( index > 16) ^ My code is as follows if(index < 1) { ...
user avatar
0 votes
1 answer
103 views

pset 3 tideman print winner does not exist despite being declared

I have such a strange behavior here in pset 3, tideman. I am doing the print_winner function because check50 says everything else is fine, but when i run the program it looks like print_winner does ...
user avatar
0 votes
0 answers
176 views

Tideman error: :( lock_pairs skips final pair if it creates cycle

It would be amazing if someone had the time to look through my code for the Tideman exercise :D I get the following error: :( lock_pairs skips final pair if it creates cycle lock_pairs did not ...
user avatar
  • 1
0 votes
1 answer
39 views

Receiving EOF when I execute check50 (Readability)

I keep getting EOF when I check50, but my program runs fine. It gives the correct output for every text input. I can not find a solution here. It looks fine, but when I run the check50 command I get ...
user avatar
0 votes
1 answer
42 views

Can you tell me my mistake

Please help, I don't know where the problem is.
user avatar

1
2 3 4 5 6