Questions tagged [bug]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
46 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
1answer
52 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
1answer
30 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
1answer
80 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
1answer
59 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
1answer
114 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
1answer
62 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
1answer
53 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
1answer
136 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
1answer
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
2answers
88 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
1answer
34 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
1answer
114 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 ...
1
vote
2answers
48 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 ...
-1
votes
1answer
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,...
0
votes
1answer
965 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
0answers
386 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 ...