Questions tagged [fails-check50-but-works]

The tag has no usage guidance.

16 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
108 views

Speller (PSET5) has output that is exactly the same as the staff's solution, but check50 returns many errors. What's happening?

My speller program (part of pset5) works well and the output exactly matches that of the staff's solution. However, when I run my program through check50, I still get several errors per their script: ...
0
votes
0answers
2 views

Okay, legit think that check50 on Tideman is broken

Actually not, still I cannot grasp what is wrong with the lock_pairs function in my code. This is my lock_pairs function: // Loop to pass each pair for (int i = 0; i < pair_count; i++) { ...
0
votes
1answer
18 views

Can't check CAESAR pset2

I solved the Caesar problem and it works flawlessly. But I can not check it properly. The results are correct but ''' check50 cs50/problems/2021/x/caesar ''' says it is incorrect. If I view the ...
0
votes
2answers
30 views

pset1/credit outputs the right output but fails check

I'll share the printing part but not the calculation part, though happy to do that to it's just a bit lengthy. Nonetheless marked outputs are the right/expected output when run stand-alone but fails ...
0
votes
1answer
31 views

Pset4 Reflection Less Comfortable - Check50 Errors

Hello CS50 community, my question is about the reflection filter (less comfortable): I have compiled a code that is reflecting (YEAH!) but there seems to be the following errors when checking: *:) ...
0
votes
0answers
24 views

Pset4 filter(more) edge

I've read so many of the posts on this and also tried to use the codes mentioned on this forum but they all give incorrect values for the edge filter. I'm quite stumped so I decided to post on this. I ...
0
votes
0answers
63 views

lock_pairs skips final pair if it creates cycle

I have been working on the tideman problem from Problem Set 3. After multiple attempts, I have been able to pass all the required checks except one: "lock_pairs skips final pair if it creates ...
0
votes
1answer
87 views

pset4 filter blur

I have written the following code for blur . // Blur image void blur(int height, int width, RGBTRIPLE image[height][width]) { for ( int h=0 ; h<height ; h++) { for ( int w=0 ; ...
0
votes
1answer
67 views

hi, i tried to solve problem set 2 substitution. it gives right output but check50 is giving errors

include include include include include int main(int argc, string argv[]) { if (argc != 2) { printf("Usage: ./caesar key\n"); return 1; } int k = strlen(argv[1]); ...
0
votes
1answer
261 views

pset3 (runoff) check50 is giving an error for print_winner

I can't find what's wrong with my code but check50 keeps telling me :( print_winner prints name when someone has a majority print_winner did not print winner of election :( print_winner returns ...
0
votes
0answers
127 views

pset5 - program runs fine but check50 still fails

My speller code works fine, I've compare it with the staff solution with different texts and dictionaries and everything is exactly the same (words in dictionary, words misspelled, words in text) but ...
0
votes
2answers
250 views

My pset1 Water Code Works as per the Spec, but Doesn't Pass the Check50

so I am very new to this but I have written some code to complete the pset1 water task and it just won't pass through check50 2016.water water.c. I have put it below, I understand that it maybe all ...
0
votes
0answers
134 views

PSET4 recover not passing check50

I get the output of all 50 images which can be viewed but it fails all CS50 checks. :) recover.c exists :) recover.c compiles :) handles lack of forensic image :( recovers 000.jpg correctly :( ...
0
votes
0answers
94 views

Mario and Greedy programs can't pass the test

I will start talking about mario, because i can't see anything incorrect with it. So, here we go: This is my codeline: and here is some inputs/outputs (i believe it is working correctly): However, ...
0
votes
0answers
526 views

pset4 recover not passing check

My program seems to work. I recover 50 images and they all can be viewed. However, I get errors when I try to check it with check50. It says "Expecting an exit code of 0. ... but received the ...
0
votes
1answer
329 views

Recovers jpg correctly, but .jpg not found [Recover]

When running my code for recover (attached below) I'm bouncing back and forth between a segmentation fault and another error when running check50. My code runs without issue on card.raw But when I ...