Questions tagged [error]

The tag has no usage guidance.

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

[Pset 5 Speller][Load] Segmentation Error

I posted this to the CS50 Subreddit with no help, so i thought i'd post here and try to get some help. My load function is not working, and keeps producing a segmentation error at (hashtable[index]->...
0
votes
1answer
152 views

Pset4 problem with recover: check50 expected exit code 0, not 3

I know this question has been asked many times before on this forum, but none of the problems addressed so far seem to be the issue in my program. As for many people, my program seems to be working ...
0
votes
1answer
59 views

Pset 1 expected expression

I've run into a problem on credit. Whenever I run this #include <stdio.h> #include <cs50.h> int main(void) { int credit; //Ask user for input of cc number printf("What is ...
0
votes
1answer
1k views

I'm having problems with pset3 music. Specifically, with the is_rest portion of the problem. Help please T_T

I searched google and tried to find a solution but to no avail. This is the error I've been getting. helpers.c:161:13: error: result of comparison against a string literal is unspecified (use strncmp ...
1
vote
2answers
2k views

error: unused parameter 'argv'

I am writing this simple code for checking if the user has entered the key or not. If not I want to return 1 and show an error msg. Below is the snapshot of my code which I am using. I am getting the ...
0
votes
1answer
482 views

pset5: working, no leaks but many errors says valgrind in my recursive trie

well it works, but i keep getting many errors related to init and freeRecursive that are my recursive functions to generate and delete my trie most of my errors are related to the condition of ...
0
votes
1answer
134 views

What 's the error in my code, it's not working on cs50 ide

my code #include <stdio.h> int main() { char a[4][4]; a[0] = {65, , 65, }; a[1] = {65, , 65, }; a[2] = { , 65, , }; a[3] = {65, , , 65}; } compiler is showing following error : ~/...
0
votes
1answer
75 views

A wierd error in won function (fifteen)

when I run Check50 my program passes all the tests except one, the terminal spits out this weird cryptic error :( 3x3 board: make sure game is winnable expected "Tile to move:", not "[2J[0;0H1-2-...
0
votes
1answer
262 views

Timed out while trying to exit (Fifteen)

Whenever I run Check50 my program passes all the tests except the last two, the terminal spits out :( 3x3 board: make sure game is winnable timed out while waiting for program to exit :( 4x4 ...
0
votes
1answer
18 views

The output is only _

So in this program, the only output I am getting is _. Help would be appreciated. My init: void init(void) { // Initializing the game int square; square = (d*d) - 1; for (int i = 0 ;...
0
votes
1answer
492 views

Update50 not working, can't check assignment, cant submit

I know the first question has been asked, but the previous posts I went into didnt help. update50 error: The following extra packages will be installed: ide50 0 upgraded, 0 newly installed, 0 to ...
0
votes
1answer
118 views

Problem with cs50 terminal commands

Ever since the latest update50, check50 and submit haven't been working at all. It shows an error about a traceback to a folder containing Python.
0
votes
0answers
30 views

Resize does not compile

I wrote the code for Resize, saved it and compiled it. But it does not compile. Instead, it gives a super long error message. ~/workspace/pset4/resize/ $ make resize clang -fsanitize=integer -...
0
votes
1answer
137 views

check50: no such file or directory

I'm trying to test with check50 the speller but when I run "check50 cs50/2017/x/speller", I get "bash: /usr/bin/check50: No such file or directory". Same with submit50.
0
votes
1answer
185 views

pset6 how do we check for string in mario

I've tried to find out how to check for string input for mario.py. I know to check for the range of integers when getting input from the user, but if they enter a string instead of a number, is there ...
0
votes
0answers
744 views

speller.c:217:5: error: redefinition of 'main' int main

I actually received two error messages: speller.c:217:5: error: redefinition of 'main' int main(int argc, char *argv[]) ^ speller.c:20:5: note: previous definition is here int main(int argc, ...
0
votes
1answer
30 views

No errors while loading small dict, but segfault when loading large one. Pset5 Speller

Getting a segfault after about 75 words added to the dictionary. #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include "dictionary.h" typedef struct node { ...
0
votes
1answer
133 views

CS50 - Pset7 - Quote Redirects To Login - 2017

The quote.html renders when I click its link from the main page, but when I submit the symbol, the server redirects me to the login page. It never renders quoted.html. I've tried looking at other ...
0
votes
1answer
38 views

In the previous code, I am getting runtime error

What should I do ? How to get rid of this runtime error Link to my code I had written the code for snackdown'17 (Temple Land) my command line is showing snkeat.c:58:28: runtime error: unsigned ...
0
votes
0answers
269 views

Need solutions! Errors keep popping up and Docker won't start [Windows 10 Pro x64], What should I do?

First of all, I'd like to make it clear that I'm a total noob when it comes to docker. I've read every other thread yet couldn't solve it (Though, many times I wouldn't just be able to understand what ...
0
votes
1answer
29 views

diificulty in pset3

what's problem with my code, getting following errors when running check50. here is my code
0
votes
1answer
398 views

How to fix Error: unused variable (Pset 1 - Greedy)

I don't understand why I keep getting an error message regarding the variable "amount." Can anyone identify/explain the problem and how to fix it? The relevant part of my code is below. Thanks in ...
0
votes
2answers
122 views

Help! CS50 Error message not making sense at all

I am in week 1 on CS50 2017, and in the lecture he presents a code written as follows: #include <cs50.h> #include <stdio.h> int main(void); { int n = 0; while (true) { ...
0
votes
1answer
71 views

Pset4, resize error message

I compile the resize.c and here is the error message got. I searched it and found it has problem in the clang installed but I'm currently using online ide. Can I change clang in it and how? I love ...
0
votes
0answers
585 views

Internal error:VMware gives an error how to solve

VMware gives an error i.e. Internal Error while starting welcome window. I reinstalled but still getting same problem.
4
votes
1answer
48k views

implicit declaration of function is invalid in C99

I'm getting an error. Here's my info from Terminal: make: *** [tests/myFunction] Error 1 ~/workspace/ $ make ./tests/myFunction clang -fsanitize=integer -fsanitize=undefined -ggdb3 -O0 -std=c11 -Wall ...
0
votes
1answer
41 views

pset6 - greedy doesn't print answer- just returns the input. Where have I gone wrong?

import cs50 while True: print ("O! Hail!, How Much Change Is Owed?") n = cs50.get_float() if n >= 0: break q = 25 q1 = 0 d = 10 d1= 0 ni = 5 ni1 = ...
0
votes
1answer
55 views

Pset6 - Analyzer.py - Says Undeclared Function

I declared a function called load_words above init() to load in the words. However, when I call my function in init(), it gives the error name 'load_words' is undefined at the lines where I call ...
0
votes
1answer
121 views

handles possessives properly and substrings properly fail- pset5(trie)

bool check(const char *word) { int i; node *loader = root; for(int c = 0; word[c] != '\0'; c++) { if(isalpha(word[c])) { i = (tolower(word[c]) % 'a'); } if (word[c] ==...
1
vote
2answers
196 views

pset 1, clang error in make hello

I made a file called hello.c and typed in the code exactly as required for pset1 but when I type in make hello in the terminal I receive the following text: clang -fsanitize=integer -fsanitize=...
0
votes
1answer
165 views

Pset8 Mashup cs50x 2016 version, issue to make it work

I've completed the cs50x 2016 version last december and I'tried to see the mashup code working again in order to see code and reuse it and maybe modify it. I tried to run it as usual but it didn't ...
0
votes
1answer
77 views

pset4 recover.c segmentation error, expects an exit code of 0

I feel like I am so close, but I get a segmentation error, it expects 0 and returns 2 (my usage statement). Can someone explain this to me? I'm really confused on why it is returning this statement. ...
0
votes
1answer
456 views

Speller Valgrind errors. Fixed but not sure if correct

I have managed to finish pset5 speller and attempted creating dictionaries with linked-list, hash tables and tries. They are all working successfully and if I create a hash table with 20,000 elements ...
0
votes
2answers
974 views

Problem with my caesar.py code in PSET6 CS50 2017

import sys import cs50 while True: if len(sys.argv) != 2: print("Please enter the key") break key = sys.argv[1] i = 0 string = cs50.get_string() for i in range (i,len(string),+1): ...
0
votes
1answer
238 views

Pset7 C$50 URL not working

I am hoping someone can help. In PSET7 C$50, the url that is generated in the "Running" section of the problem set documentation is leading to a page with a message "This site can't be reached". I ...
0
votes
1answer
92 views

pset2 Caesar failing but console looks correct?

For some reason my check50 is failing but the code runs perfectly? #include <cs50.h> #include <stdio.h> #include <string.h> #include <stdlib.h&...
0
votes
2answers
139 views

pset 1: credit.c -- Completed with right output but check error?

I have completed problem set 1 with the correct output however console states it is wrong, is this ok to submit?
0
votes
1answer
76 views

Pset6 Parse: Failing HTTP & non-existant file

I've looked at other questions on this topic but none of the other code is structured like mine, making it hard to compare. I've fixed all the other errors except for two: :( HTTP/1.0 returns error ...
0
votes
1answer
33 views

Pset6: Having Issues Running Server.C

I'm trying to debug server.c with gdb, but I can't figure out how to run server.c. The program compiles correctly, but when I use gdb ./server and then run public, server.c runs into an infinite loop....
0
votes
1answer
103 views

pset5 works fine but doesn't pass check50

i have the following problem: After a few days of working on pset 5, I finally solved it, I tried it with different text and compare the results with the implementation of the staff and the output is ...
0
votes
1answer
105 views

pset3 fifteen check50 correct / not correct

Hiyas! So I'm fairly confident that I've implemented a functional version of The Game of Fifteen, but the check50 sequence returns some odd errors: ~/workspace/pset3/fifteen/ $ check50 2015.fall....
0
votes
1answer
46 views

Can't upload my final project

I want to know if anyone else is having this problem, I'm trying to upload my video for my final project, which is shorter than 2 minutes, but the upload just hangs and never finishes, I've already ...
1
vote
1answer
1k views

cs50.h - no such file or directory

I am on Windows 10 and using Atom and GCC instaed of cs50.io because I have limited internet access. I downloaded cs50.c and cs50.h and put them in the same directory as my string.c file. I compiled ...
0
votes
1answer
55 views

Pset6 - Error With Using GDB

I have been trying to use GDB to find errors in my code. I went through the steps @MARS gave me as an answer to one of my questions. However, when I tried to list the values of my variables by using ...
0
votes
1answer
131 views

pset7 - register.php error, but new user inserted in database

my register.php code seems to work (at least I do find the new user in the database table), however instead of reaching index.php, I get this errormessage: https://ide50-felderer.cs50.io/register.php ...
1
vote
2answers
78 views

Check50 Error (pset3, fifteen)

In my own testing my fifteen game compiles without errors and works perfectly. However, when I checked it with check50 it said that it couldn't initialize the boards correctly, and I got this: Then I ...
0
votes
1answer
37 views

PSET6 Lookup - Read-Only Variable As Well As How to Approach

I have started implementing lookup. When I try to compile my code, the terminal gives an error when I try to assign one of my variables to another variable. The error says that I am trying to assign a ...
0
votes
1answer
95 views

CS50 Pset1 - Schizofrenic Greedy Test

There's something really weird in the error I get back after running the test. I get that my results are wrong because they're between " "...but I really don't understand where those come from...any ...
0
votes
1answer
74 views

CS50 - PSET5 - program works, no leaks, fixed number of errors

I tested my code on multiple dicitonaries/texts, it all works nicely, even at times faster than the staff's solution. When I run valgrind, I get no memory leaks but 14 errors, seemingly in Load, and ...
0
votes
1answer
112 views

pset1 mario: error: expected expression

I've looked over some of the other threads and I am still puzzled. I keep getting an error: expected expression for line 21:5 (the ending curly bracket for my do loop). Here's my code so far: #...