Questions tagged [error]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 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 ...
0
votes
1answer
7 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
0
votes
1answer
17 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 (...
0
votes
1answer
18 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(&...
0
votes
0answers
16 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("/...
0
votes
0answers
26 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 ...
0
votes
1answer
28 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 "...
0
votes
1answer
9 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
147 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 ...
0
votes
1answer
43 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 ...
0
votes
1answer
33 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/...
0
votes
1answer
16 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/...
0
votes
0answers
14 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 ...
0
votes
0answers
33 views

CS50 PSET3 test code does not compile

The output says that the code does not compile, but the error is in the test code not in mine`s
0
votes
1answer
53 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 :( ...
0
votes
0answers
10 views

Q: how to read terminal window and debug in Finance?

I am receiving errors (in red) in my terminal window. However I'm not understanding what those errors actually mean. Can someone help direct me on how to 1) read the error 2) find out where exactly ...
0
votes
1answer
24 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>...
1
vote
1answer
15 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 ...
0
votes
2answers
39 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 ...
0
votes
0answers
30 views

Filter (more) Edge error not passing check50

Yesterday I copleted filter less and all images passes check50, today I try to complete filter more edge I've added the same code like like filter less for Grayscale, Reflection, Blur and added new ...
0
votes
1answer
14 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 ...
0
votes
1answer
31 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 <...
0
votes
2answers
39 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....
0
votes
0answers
24 views

Request throwing JSON error

I'm having a very strange problem. This code, which was working perfectly yesterday, is now throwing the error - File "/usr/local/lib/python3.9/json/decoder.py", line 355, in raw_decode ...
0
votes
1answer
37 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!
0
votes
1answer
27 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....
0
votes
1answer
421 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 ...
0
votes
1answer
13 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) { ...
0
votes
1answer
71 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 ...
0
votes
0answers
103 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 ...
0
votes
1answer
23 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 ...
0
votes
0answers
22 views

Help, doe not working - cash [duplicate]

Can someone please help me, as much as I think it should give the least amount of coins needed but it is not.
0
votes
1answer
40 views

Can you tell me my mistake

Please help, I don't know where the problem is.
0
votes
1answer
12 views

I tried everything and it still shows me this error

1 error generated. $ clang cash.c cash.c:6:1: error: expected identifier or '(' my code starts like this #include <stdio.h> #include<cs50.h> #include <math.h> int main (void); float ...
0
votes
1answer
46 views

Error in CS50 IDE Terminal

I was working on the cs50 IDE and noticed this happen a couple of time - As you can see in the last terminal in the last entry the substitution changed to subst i don't know why. This happens mainly ...
0
votes
1answer
23 views

Pset2 Readability error with "else" statement

readability.c:28:9: error: expected expression else: Shown above is the error I am getting. If anyone would point me to what exactly I am doing wrong. that would be great. Bellow, I will add my ...
1
vote
1answer
196 views

HELP, keep getting this error.... error: invalid operands to binary expression ('float' and 'int')

Hi! keep getting this error in my code Could someone kindly help me figuring out whats wrong? Thank you :)
0
votes
1answer
48 views

Pset2 Readability undeclared identifier error message

I am attempting to make my program but everytime I try, it tells me I have not identified my variable "i" eventhough I identified it as an integer above. Does anyone know what I'm doing ...
0
votes
1answer
35 views

My program is not free of memory errors Speller Pset 5. Can anyone help?

I am working in Speller of PSET5. My program compiles and only has one problem :( program is free of memory errors valgrind tests failed; rerun with --log for more information. The rest of the ...
0
votes
1answer
22 views

pset2 (ceasar) - isdigit function not working correctly returns "expected expression" error

I don't know why I am getting an error on my isdigit() function, it seems correct to me. #include <stdio.h> #include <cs50.h> #include <stdlib.h> #include <string.h> #include &...
1
vote
4answers
3k views

Can't submit or check

I'm trying to upload my assignment, but I keep getting the same error whenever I run the check50 or submit50 command: "Make sure your username and/or password are valid and submit50 is enabled ...
0
votes
1answer
76 views

*** No rule to make target 'runoff'. Stop. Even though I'm in the correct directory

I keep getting the No rule to make target error on the runoff problem even when I'm in the correct directory as you can see in the picture attached. Note: I have just completed the vote function for ...
0
votes
1answer
30 views

RuntimeError: unused values (wp) in Final Project

I'm working on my final project for the Web Track and whenever someone wins the game (tictactoe) I get an internal server error and the error message: RuntimeError: unused values (wp) Now what this ...
0
votes
1answer
82 views

My code does what I want it to do, but I get errors with check50 (PSET1, MARIO, LESS)

When I run my code in the terminal it gives me the correct response. However, check50 indicates there is an issue with my spaces. I have spend 2 days looking at it but I dont know whats wrong. INPUT /...
0
votes
1answer
38 views

Terminal window not update

Struggling after Certain changes were made on the file and compiled as compiler failed to identify the changes made.I.e the terminal window displays the same errors in the file. This meant program ...
0
votes
1answer
148 views

Unable to compile pset1. Mario (Less comfortable)

I am unable to compile my file and get many errors. INPUT #include <cs50.h> #include <stdio.h> int main(void) //Prompt for the height of the pyramid int height; height = get_int (...
1
vote
2answers
65 views

ERROR PROBLEM SET 1- CS50 LIBRARY

I have included the cs50 library however, I am still getting an error. Input: #include <stdio.h> #include <cs50.h> int main(void) { printf("hello, %s\n"); } string name = ...
0
votes
2answers
638 views

Problem Set 1 help, clang hello.c, and ls (list)

When I follow the directions from Problem Set 1 on the website, I get an error code when I type in clang hello.c and when i type in ls the list doesn't show up. Before I made the new file so I could ...
0
votes
1answer
64 views

Getting partial output in Blur (pset4 filter) , trying to debug edge and middle pixel

My program when run through check50 says the corner pixels work but nothing else seems to work. I have been stuck on this problem for days and after not getting any considerable reply on the cs50 ...
0
votes
1answer
84 views

Error: use of undeclared identifier 'j'

My code looks fine but "make mario" insists that "Error: use of undeclared identifier 'j'". #include <cs50.h> #include <stdio.h> int main(void) { int n; do { n = get_int ("Height: "...

1
2 3 4 5