Questions tagged [bug]
The bug tag has no usage guidance.
23
questions
1
vote
2
answers
52
views
Why is 'gevent' not found?
When I compile my program, it says that "gevents" file is not found?
Whats wrong?
#include "gevents.h"
#include "gobjects.h"
#include "gwindow.h"
#define HEIGHT6 00
#define WIDTH 400
#define Rows ...
0
votes
2
answers
79
views
Help In Solving Memory Leak For PSET5
I need to fix the memory leak error for me to complete pset5. When running my code, I get:
:) dictionary.c exists
:) speller compiles
:) handles most basic words properly
:) handles min length (1-char)...
0
votes
1
answer
3k
views
printf is changing string contents
I finished PSet2 with all the correct results, but I'm trying to figure out why I had to change some of my code in initials.c to make it work properly. The original code is as follows:
#include <...
0
votes
1
answer
42
views
printf printing an @ after a string
When I try to print an array of characters as a string with a variable before, like that
int main()
{
string text = "a";
char str[2] = {'a', 'b'};
printf("%s\n", str);
}...
0
votes
1
answer
59
views
CS50 2019 Verified Certificate Missing
I recently tried downloading my certificate from the cs50 Introduction to computer science 2019 course. However I can only find the 2020/2021 course and am not able to download my certificate anymore.
0
votes
1
answer
112
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
1
answer
86
views
pset3 resize less
I'm having some problems and cannot seem to find the bugs. The program seems to function correctly but cs50 check says that the file is too large. Would love to have someone to look at my code and ...
0
votes
1
answer
103
views
crack.c: No response 😒
When I run my crack.c, the program never responds. It just sits there and wastes time. I even tried debugging it on the CS50 IDE, and it was normal. Here is my code:
#include <cs50.h>
#include &...
0
votes
1
answer
65
views
Bug? My Crack code was accepted though it doesn't work properly
Can't totally get a thing. My code was accepted and the score is 5 out of 5, however it does't work properly. After searching through the forum I inderstood that I should use strcmp() for comparing ...
0
votes
1
answer
37
views
check50 is being silly
The attached image is self-explanatory.
Why does check50 not find any input request, yet the program clearly works as intended in the IDE? The code clearly shows that the program requests input.
...
0
votes
1
answer
62
views
PSET3 Game Of Fifteen tiles not swapping! (no illegal function but no change in board)
My game of fifteen is somehow still not working.
here is the code for move()
bool move(int tile)
{
// TODO
// find location of specified tile using linear search
//find tile location in nice ...
0
votes
1
answer
178
views
Submit page tells me that my submission is late
I was migrating my code from 2016's CS50 function syntax to 2017's updated function syntax (e.g. GetFloat() -> get_float()). When I submitted my first problem set, it said that it had been submitted "...
0
votes
1
answer
66
views
Mario bug: Why won't "b" increment as intended?
I'm really close to solving this problem but can't seem to figure out why I'm not getting the correct result (i.e. a pyramid made of #'s that looks like this:
http://cdn.cs50.net/2016/x/psets/1/pset1/...
0
votes
1
answer
143
views
Odd bug for Find
I've been working of the find (problem set 3) for 2 weeks and I'm just stuck.
I already have the design etc worked out but there is a bug that I seem to be missing.
So the problem is that when I run ...
0
votes
1
answer
188
views
Pset2 Initials corrector seems to have a problem
So, I have finished the program and it works as it should, displays everything identically to the staff one. However, when I use the corrector to check for errors it seems to glitch, have a look:
:) ...
0
votes
1
answer
157
views
Bug in game of scratch
I have a running project https://scratch.mit.edu/projects/71129428/
the problem is the fish in it stuck sometime and scores keep increase.
I was thinking of an idea that i may need to apply id to ...
0
votes
0
answers
308
views
Pset 8 Finance TypeError: 'bool' object is not subscriptable
Does anyone know, what can be the source of this error. I have no bools in register or check, but it is haunting me.
Maybe anyone can share the tests chec50 does. This is ridiculous.
There is no ...
0
votes
1
answer
124
views
Caesar Pset2 wont pass the check50 though the output is correct?
im totally a newbie in coding and if u guys just help me out i worked hard with the code and i just want it to pass the check50 i check the output on command line and there is no problem !! i wonder ...
0
votes
1
answer
70
views
vigenere.c cs50 plaintext for loop starts after the key array loop ends
i need help in the sense that if i run my program with the key being one letter, whether capital or lowercase, it works properly, but if more than one letters in the key, the last letter is used for ...
0
votes
2
answers
89
views
My binary sort function cannot find the needle in the haystack. Can anyone see the bug in this code?
I am testing by using ./generate 1000 50 | ./find 127. The needle should be found but isn't.
#include <stdio.h>
#include <cs50.h>
#include <string.h>
#include "helpers.h"
/**
* ...
0
votes
1
answer
43
views
Problems with "when color touches color"
I am currently trying to create a guessing game in Scratch that will play a soundtrack from the game Dark Souls, and you will get two choices (doors) of which boss the music is from. I want it to work ...
0
votes
0
answers
398
views
pset2 Caesar Success?
First off, I managed to get green smiley faces with the check50 on my initial code for Hail, Caesar! But I wasn't satisfied. The reason was that my code seems to have a corner case that the check50 ...
-1
votes
1
answer
12
views
initialize wont compile..?
Here is my code
#include <stdio.h>
#include <cs50.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
int main(int argc, string argv[]);
{
printf("Hello,...