Questions tagged [fails-check50-but-works]

The tag has no usage guidance.

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

caesar pset 2 non-numeric key error even when it works well when i try it myself

Here is my code which works well even with non-numeric key. #include <stdio.h> #include <cs50.h> #include <stdlib.h> #include <ctype.h> #include <string.h> bool key_check(...
0
votes
1answer
18 views

check50 for plurality

Every example I try myself works perfectly fine but once I check50 it, I get error messages for not printing one,two, or all three winners. I saw some people having format issues with spaces, but I ...
0
votes
0answers
20 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
44 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
60 views

Pset5 Speller - Valgrind displays no leaks but code fails check50

any help would be much appreciated - I've been trawling other questions similar to this one but all the adjustments I have tried to make don't seem to fix the check50 failure. The code seems to run ...
0
votes
1answer
69 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 ; ...
1
vote
1answer
69 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
1answer
148 views

PSET6 DNA - I passed every test it wanted me to do, but I got 42% after submitting?

I completed the DNA problem on pset6. There is a series of tests you need to enter into the command line before you submit, and I did all of them and passed every single one (as shown below). However, ...
0
votes
1answer
83 views

Check50 for caesar, pset2 returns an error “Not valid ASCII text” twice, even though it encrypts correctly for the same text used in check50

Okay, the code is given below (forgive me if there are too many comments!!). Please help!! Code: //the objective of the program is to create a simple encryption of the text inputted by the user with ...
0
votes
1answer
52 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
60 views

Failing miserably on check50 and valgring, even though all my answers match exactly the staffs' keys

I don't know why my code is falling on check50! It seems like it is blowing the time limit. Is it possible? I ran my program with many texts, and the results always match the staff's key. Can ...
0
votes
1answer
229 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
1answer
18 views

Caesar Working as Expected - Check50 glitched?

So my Caesar is finally working and working as expected but after submitting it check50 is not giving me score for it
0
votes
1answer
40 views

:( /check route confirms whether username is available PSET8

:( /check route confirms whether username is available route did not return true when username is available Log sending GET request to /check?username=check50student1 checking that status code 200 is ...
0
votes
1answer
168 views

pset 8 finance: “:( buy handles valid purchase” fails

I`am bug fixing my application and can't find a solution for the ":( buy handles valid purchase" test. Here is Log: expected to find "112.00" in page, but it wasn't found Log sending POST ...
0
votes
1answer
430 views

PSET 6: Sentimental [Mario.py(less)]: How exactly do I “reject input” in Python as specified in check50?

this is my first time posting on here and I'm trying to not break any rules but sorry if I do. So, I followed the specification to make mario.py ( they are the same ones for mario.c ) in Sentimental ...
0
votes
1answer
137 views

pset8 finance check50 fails on “checking that ”56.00“ is in page” even though it is in the page

My sell function redirects to index, and I am able to see the correct stock prices and total value amounts formatted as USD, but for some reason check50 won't pass me on the final test (https://cs50....
1
vote
2answers
189 views

PSET8: Finance - “check50 ran into an error while running checks!” Contact sysadmins@cs50.harvard.edu with the URL of this check!

While checking my code for PSET8 (Finance) with check50 I ran into the error "check50 ran into an error while running checks!" and with a note in the end stating "Contact sysadmins@cs50.harvard.edu ...
0
votes
1answer
90 views

pset1 - credit fails check50 compilation with “expected exit code 0, not 1” but compiles locally

My solution for "credit" compiles just fine with make, but when using check50, I get :( credit.c compiles. expected exit code 0, not 1 My code is as follows: #include <stdio.h> #include &...
0
votes
1answer
181 views

pset4 recover - my implementation recovers 50 jpegs but check50 rejects

I am having trouble with recover from pset4 - when I run it, it creates 50 images, apparently correctly formatted (000.jpg-049.jpg). However, check50 rejects it: :) recover.c exists. :) recover.c ...
0
votes
1answer
286 views

PSET7: Finance: check50 errors

I have implemented all pages except the default homepage. Every functionality is working fine. But, check50 shows some errors which never goes. I don't know which frown is turning upside down. Help ...
0
votes
1answer
75 views

Errors while check50 in Pset1 mario less, expecting suggestions

I am getting following errors with check50. Need help to understand which part of my code cant handle these situations. :( handles a height of 1 correctly expected "##\n", not "" :( ...
0
votes
1answer
454 views

pset5 :( speller compiles expected exit code 0, not 2

I was able to compile speller locally, but I keep failing check50. When I run my program I get the same output as the staff solution and it does not leak any memory. I have not altered speller.c or ...
0
votes
2answers
258 views

pset7: check50 error - sell page has all required elements

I'm having an argument with check50 on pset7 finance, when it comes to the SELL part. The web app works fine and I'm able to sell my stocks. When I run check50, though, it keeps telling me that the ...
0
votes
1answer
191 views

Pset4 resize code working, headers correct, check50 fails

My code seems to work perfectly, and the headers match those of the staff solution. However, it fails check50, with the message "Image has more bytes than expected" showing up for almost all criteria. ...
0
votes
2answers
967 views

pset7 C$50 finance check50 error expected status code 200, but got 400

Answer The error was in my index() implementation. I had made the mistake of including the following code in index(): # Query database stocks database for total number of shares of each stock ...
1
vote
1answer
534 views

pset7 fractions being rejected causing Buy to fail

Everything seems to be working fine on my end, however I am running into a single error for buy when running check50. :( buy handles fractional, negative, and non-numeric shares. expected status code ...
0
votes
3answers
389 views

Register Route failing check50 but is working (expected status code 200 but got 400)

I have looked over this code multiple times, looking for misplaced variable names or attempts to hash the wrong thing. I have tested my code multiple times in many ways and I can't get it to fail. ...
0
votes
1answer
40 views

Vigenere will not pass all checks

I can not figure out why my cypertext is missing a letter when I use the key "bacon" and the plaintext: Meet me at the park at eleven am. The output I get is "Neg zf av uf pcx bt gzrwep oz" when it ...
0
votes
1answer
79 views

Can you help me understand these check50 results?

So, I've been working on PSET5, "speller". However, when I submit information to check50, under the "apostrophe" header, it does not attempt to grade me on my apostrophe usage. It appears as if I am ...
0
votes
1answer
76 views

cs50 - I can not clear check pset1 Mario less cause “…required files…”. I'm in the right directory.

The check50 is returning I have not created the file, which I see has been a problem others experienced, but all the solutions offered are to get into the correct directory. I am in the correct ...
0
votes
1answer
82 views

issues with check50 and erros

What to do when all my programs work perfectly and even better than asked, with a more friendly user interface and check50 finds error in everything? No one told you had to use exactly the same ...
0
votes
1answer
278 views

pset4 recover - recovers 49 images but not last image and also doesn't pass check50

#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { // ensure proper usage if (argc != 2) { fprintf(stderr, "Usage: ./recover file\n"); return 1; } ...
1
vote
1answer
109 views

Pset2 - Vigenere fails check50 with “expected exit code 0, not 1”

I'm at my wits' end. My code for vigenere compiles fine using make vigenere within CS50 IDE. However, when I run check50, I get this: :) vigenere.c exists. :( vigenere.c compiles. expected exit ...
0
votes
1answer
238 views

pset6 - mario more - check50 EOF error

My pset6's mario-more Python implementation works fine. However, check50 is returns the following errors: :( handles a height of 0 correctly / did not find EOF :( handles a height of 23 ...
1
vote
1answer
187 views

Pset 7 - Cannot replicate None type not subscritable error

I am running check50 on my code and at buy, it cannot validate a purchase because Log sending POST request to /login sending POST request to /buy exception raised in application: TypeError: '...
0
votes
1answer
182 views

Pset5 - Valgrind success, speller output matches staff solution, passes all but the last test on check50

I'm almost there on speller but I think I need another nudge before I can pass check50. I had the same valgrind error that some others seemed to be getting (Conditional jump or move depends on ...
0
votes
1answer
283 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 ...
0
votes
1answer
105 views

pset 3 fifteen check50 fails

Check50 keeps giving me these errors, I have checked log files to make sure output is correct, and running it myself gives correct output. I am completely stumped about why I am getting the following ...
0
votes
1answer
121 views

pset5 speller works, check50 fails, segfault with small dictionary

I've finally got my speller to work for the large dictionary and the given texts. Valgrind doesn't give any errors anymore. However, check50 fails, because the 'actual output' received there does not ...
0
votes
0answers
123 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
1answer
118 views

pset3 fifteen check50 error [duplicate]

Can someone help me understand what's going on with my code? check50 keeps telling me "can't check until a frown turns upside down" even though the code compiles correctly. I don't know what this ...
0
votes
1answer
69 views

mario pset1 check50 has errors, but seems fine to me. No?

Guys, now the check50 is working, but shows me a few errors as you can see on the pic, on height number 1, 2, 23, and 24. And the output seems fine to me, as in according to the specs. (On the pics ...
0
votes
2answers
248 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
1answer
47 views

PSET4 Resize failing staff check but images appear normal

I've browsed through the other solutions to this problem but I couldn't find why mine code isn't working. I compared my header output to a staff solution and it was the same, as well as the size of ...
0
votes
1answer
327 views

Pset2, Vigenere error “\ expected output, not a prompt for input” when I run check50

I get this error when I run check50 ~/workspace/pset2/ $ check50 2016.vigenere vigenere.c :) vigenere.c exists :) vigenere.c compiles :( encrypts "a" as "a" using "a" as keyword \ expected output, ...
0
votes
1answer
111 views

PSET4 recover.c recover 50 photos but couldn't pass check 50

I finished recover.c and it recover all 50 photos but couldn't pass check50. I checked with valgrind and it seemed that i have no errors of memory allocation. I already searched for answers and ...
0
votes
1answer
129 views

PSET4 Resize: image resizes but fails check50 (PADDING or HEADER???)

I thought I was confused before I had this "clarification": check50 gives confusing results for pset4 resize. Now I'm flat out lost. For this challenge I actually tried to use a function to hold all ...
0
votes
0answers
92 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, ...