Questions tagged [error]
The error tag has no usage guidance.
220
questions
0
votes
1answer
14 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
12 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
29 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
38 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
20 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
20 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
36 views
0
votes
1answer
10 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
28 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
0answers
14 views
I am getting 2 following errors on using check50 on my code. Can anyone help?
:( encrypts "This is CS50" as "Cbah ah KH50" using yukfrnlbavmwzteogxhcipjsqd as key
output not valid ASCII text
:( encrypts "This is CS50" as "Cbah ah KH50" ...
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
71 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
42 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
30 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
15 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
3answers
667 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
55 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
25 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
25 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
54 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
16 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
115 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
51 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
11 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
291 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
55 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
28 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
50 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
118 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
51 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
84 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
243 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
832 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
38 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
59 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
59 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
765 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
140 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
96 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
335 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
23 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
529 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
45 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
151 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
274 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
199 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
109 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. ...