Questions tagged [error]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
7 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 &...
0
votes
1answer
25 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
13 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
0answers
19 views

Internal Server Error

Error Message: "Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.&...
0
votes
1answer
12 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
23 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
14 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
54 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
24 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
0answers
10 views

CS50 Web programming with python project1

While I'm trying to install psycopg2-binary it is showing me the following error. Help me with it.
0
votes
2answers
84 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
39 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
0answers
18 views

I got a “linker command failed with exit code 1” error after compiling my source code

clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wshadow mario.c -lcrypt -lcs50 -lm -o mario /usr/bin/../lib/gcc/x86_64-linux-gnu/7.4.0/...
0
votes
1answer
33 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: "...
0
votes
0answers
5 views

Eorror while login virtual machin

I am getting the follwing error in VMWare Workstation 15 error while running virtual machine. This host does not support Intel VT -x. This host does not support "Intel EPT" hardware assisted MMU ...
0
votes
0answers
71 views

Getting a NameError in the PageRank problem in CS50's Introduction to AI with Python

Here's the implementation code :- https://gist.github.com/ShaunakInamdar/9a914b43bb778aac04e8f254f3e5329f I'm getting an error in line 89 saying "NameError: name 'pageRank' not defined." Somebody ...
0
votes
0answers
46 views

I am having trouble with the 2020 pset4 Recover assignment and even though my code compiles, it doesnt work, its not recovering the images

EDIT: I posted this 17 days ago please help. Heres my code and it wud be great if someone cud help A.S.A.P. thankyou! #include <stdio.h> #include <stdlib.h> #include<stdint.h> #...
0
votes
1answer
41 views

Mario problem in IDE

I was trying to run the below program on CS50 IDE, however it shows an error, is it something wrong with the CS50 IDE ? #include <cs50.h> #include <stdio.h> int main(void) { int n; ...
0
votes
1answer
146 views

cs50 question. Pset2 Readability

hi i need help in making Readability. i get an error when i put in make readability. this the error i get. $ make readability clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wno-...
0
votes
0answers
83 views

NameError: name 'db' is not defined

I've made a simple code using python, where with the help of Flask_sqlalchemy I am trying to create 2 tables in a database which is being hosted by Heroku. The file db.py contains my table details ...
0
votes
3answers
30 views

Mario Problem set 1 undefined reference

This is the error I'm getting and I'm not sure why it isn't working because this is how it was done in the example in the lecture. This is done using and for reference. I've looked similar questions ...
0
votes
1answer
30 views

Problem set 1 Mario variable issue

I've been staring at my computer for so long trying little tweeks to fix the error message. TLDR how do I stop the shadow message from appearing and initialize variable h? The image looks confusing ...
0
votes
1answer
44 views

Pset3: Plurality; Code doesn't consider command line arguments expect the first one!

I don't understand why my code only considers the first command line argument and shows "Invalid Input" for rest of the arguments upon passing other argument's name while voting. Here is the code ...
0
votes
1answer
42 views

CS50 Terminal saying there's error in code that isn't there - More Comfortable Mario

Whenever I type Make Mario into the Terminal for the "More Comfortable" Mario.c assignment in Week 1, it keeps telling me I have an error on 13:9 - but there's nothing typed on 13:9. I'm a bit ...
0
votes
1answer
417 views

pset3 Runoff help

My code compiles but the only functions that had no errors are the print_winner and eliminate functions. I have tried to solve the errors for the other functions with no luck. My errors with the ...
0
votes
1answer
88 views

During PSET 2: Substitution, I got an expected expression error for get_string. Please help

substitution.c:24:23: error: expected expression char* plaintext = get_string(); ^ /usr/include/cs50.h:109:53: note: expanded from macro 'get_string' #define get_string(...) ...
0
votes
1answer
81 views

Pset4/recover: code is working fine but the recoverd images are not correct

I have written this code. The code seems to work fine but the images are not correct they are distorted. I have attached those photos below. Can you please help me and tell me where I went wrong in ...
0
votes
1answer
259 views

Plurality vote strange errors

My code works consistently, but I get these two errors which I check it. I would like to know how to replicate these errors on my own so that I can figure out how to fix them. #include <stdio.h>...
0
votes
0answers
22 views

skip many loops error

I want if found something skips 4 or 5 loops if a = 20 and found something a will be 35 but didn't work why for a in range(len(cont)): if cont[a:a + len(str[c])] == str[c]: temp += 1 ...
0
votes
1answer
284 views

pset5 speller case-insensitive

I have couple error I don't understand them at all first case-insensitive I write strcasecmp and still have an error bool check(const char *word) { int num = hash(word); for (node *c = ...
0
votes
2answers
39 views

PS1, Cash Question. Error when printing results of roundI() function

I am trying to print out the results of the round() function. #include <stdio.h> #include <math.h> int main(void){ float change = 4.2; //want change for $4.2 printf("rounded %i",...
0
votes
2answers
96 views

Problem Set 1 - Mario Pyramid - Mystery Newline is Preventing Submission

I'm working on the 'More Comfortable' version of the Mario Pyramid exercise from Problem Set 1. It isn't too difficult and I have it up and working. It successfully rejects incorrect input and ...
0
votes
1answer
123 views

Stuck at 57% in Pset 8 Finance

I cannot fix some problems in Pset8 because in my gradebook, Finance is still at 57%. Here are the errors that I have after I used check50: :( logging in as registered user succceeds application ...
0
votes
0answers
180 views

Encountering Error When Attempting to Update Submit50

Issue: When running the terminal command "pip install --upgrade submit50", I am getting the following error: "ERROR: Command errored out with exit status 1: /usr/local/bin/python3.7 -u -c 'import ...
0
votes
1answer
52 views

PSET3 Recover - Creating only textfiles for .JPG not images

My version of Recover for pset3 is creating 50 .jpg files but only as textfiles not images and I can't work out why. I've looked through this forum and saw one similar question but the issue ...
0
votes
1answer
95 views

New IDE won't alow me to check staff solutions

I just migrated over to the new CS50 IDE and now I can no longer check the staff solutions. I mimicked the folder layout in the old IDE (photo at bottom), and even tested a few other folder locations. ...
0
votes
1answer
85 views

Help with weird bug in pset2 vigenere

After finishing most of the program, for some reason when check50 attempts to encrypt BaRFoo using keyword BaZ as well as the other attempts for the variations of barfoo and "hello, world", my code ...
0
votes
1answer
82 views

I don't get these errors

Every time I compile speller (hash table) I get these errors: clang -fsanitize=signed-integer-overflow -fsanitize=undefined -ggdb3 -O0 -Qunused-arguments -std=c11 -Wall -Werror -Wextra -Wno-sign-...
0
votes
1answer
32 views

Check50 has Blank Output

I am trying to run check50 on my code, but it does not return anything; the output is blank, and it only returns a link to a check on https://cs50.me. Anyone know how to fix this problem
0
votes
1answer
647 views

Pset6 credit python Problem

I try to convert my Credit Solution from C to Python now. But on Line 19 ( doubleCheck = ccNumber[i] * 2 ) i always get the error "TypeError: 'int' object is not subscriptable"! How can i fix this? ...
1
vote
2answers
123 views

error at while loop cs50 Pset1 credit

I am getting an error at while loop it says error: '&&' within '||' [-Werror,-Wlogical-op-parentheses] while((credit % 10 >= 0) && (i < 15) || (i < 16)) here is my ...
2
votes
1answer
464 views

UndefinedBehaviorSanitizer:DEADLYSIGNAL, what does that mean?

What does UndefinedBehaviorSanitizer:DEADLYSIGNAL ==752==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000439000 (pc 0x000000428b5b bp 0x7ffdc38f56b0 sp 0x7ffdc38f5380 T752) ==752==...
1
vote
1answer
30 views

pset 3 fifteen - check50 failure last 3x3, 4x4

I was going to check my solution to pset3 fifteen with check50 while I received two failure errors on the console (on the last 3x3 and 4x4 checks). :) fifteen.c exists. :) fifteen.c compiles. :) ...
0
votes
1answer
97 views

pset3/resize - segmentation fault

I'm getting a segmentation fault and tbh have no idea why. I run valgrind and it all seems good, no memory leak. If I run debug50 the code just switches off halfway through execution on line 43 giving ...
0
votes
1answer
411 views

error: use of undeclared identifier 'word'

I've been having quite a few issues with Pset5 and I can't figure anything out. I've been playing around with the placement of 'char word[LENGTH+1]' but I always get an error: "use of undeclared ...
1
vote
1answer
94 views

pset 6 - similarities, check50 error

Getting an error on Check50 for Similarities, Pset6. When I run Check50 the log file states: :( helpers.py compiles No module named 'numpy' I'm using the numpy package for setting up the 2D matrix. ...
0
votes
1answer
52 views

PSET4 Resize I don't understand what I'm doing wrong

I'm really sorry to be asking for help but I've been searching for answers and I just don't understand what I'm doing wrong. I think I must be messing something up with the horizontal resize and the ...
0
votes
1answer
124 views

Pset7 index RuntimeError object has no attribute name

I’m working on index part for two days now and I’m keep getting AttributeError: 'RuntimeError' object has no attribute 'name'. I changed things around but still the same error. Please, help me.
1
vote
0answers
94 views

hash sum error using update50 in cs50 ide

When i try to update my cs50 ide using update50, i get the following error: ~/workspace/ $ update50 Adding external repos... Hit http://ppa.launchpad.net trusty InRelease Ign http://archive.ubuntu....
0
votes
2answers
3k views

How to print a long number in C?

Hello I am very new to C but have some experience with python and would like to know how to print the outputs for the credit.c so I know what I am dealing with. I have this code and when I get to the ...

1
2 3 4 5