Questions tagged [check50]

Questions about using check50 to validate the output of your problem set solutions. When using this tag, please provide the command you used to run check50 and the full output of the program in the body of the question.

Filter by
Sorted by
Tagged with
0
votes
2answers
121 views

Pset1: Problem: expected “##\n”, not “ ##\n”

Program works like a charm but still get these errors in the end when running the check. Could not figure out the issue. Why ? Thanks
0
votes
1answer
192 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
317 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
510 views

pset5 speller program is free of memory errors

I have search around alot of places and even looked at others code but I dont find my code is that much different. I keep getting program is free of memory errors if I check with cs50. I can run my ...
0
votes
1answer
279 views

Style50 not working for pset5 speller

My code just works here for speller. I am receiving 4 out of 5 in style. A 5 over 5 will make me pass this pset by crossing 70% threshold. Can you Please spot errors in style? // Implements a ...
0
votes
1answer
174 views

pset3 check50 error message: “ :( bday.txt is correct ”

In pset3 (music), while checking my version of helpers.c and bday.txt for correctness, I get the error message :( bday.txt is correct - Expected 25 lines in bday.txt, but yours has 0 As far as I ...
0
votes
1answer
43 views

Trouble with the hacker edition of mario.c

I have been struggling with the hacker edition of mario.c for over 2 hours. If I give a height of 5 I only get 4 rows as shown in the attached image. /* C Program which prints mario's right aligned * ...
0
votes
1answer
38 views

pset4 recover - jpgs in place, 0 is returned, but Check50 fails - segfault

My "recovery" programm works - all 50 jpg files are recovered and pictures are visible. The programm terminates with returned 0. But as I run check50 it tells ":( recovers 000.jpg correctly - failed ...
2
votes
1answer
760 views

pset7 finance check50 doesn't detect a valid sale despite portfolio updating correctly

I'm puzzled why check50 shows me this error despite my portfolio and SQLite database correctly reflecting the sold shares :( sell handles valid sale expected to find "56.00" in page, but it ...
0
votes
1answer
617 views

pset7 finance register function check 50

after I run check50 I get following comments: Below are my code for register: @app.route("/register", methods=["GET", "POST"]) def register(): """Register user""" session.clear() if request.method =...
0
votes
0answers
52 views

Mario.py works but gets different check50 results each time without changing a thing in the source code

Can someone please point out what's wrong with my code? from cs50 import get_int def main(): print("Height should be a positive integer between 0 and 23.") # a "do-while" loop to recieve a ...
0
votes
1answer
245 views

Pset7 check50 buy error :( buy handles valid purchase

:( buy handles valid purchase expected to find "112.00" in page, but it wasn't found Log sending POST request to /login sending POST request to /buy checking that "112.00" is in ...
0
votes
1answer
581 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
1answer
97 views

check50 cs50/2018/x/music Failing

https://cs50.me/submit50/results/ramynasr/2da60275db4805137478dc9b9dd4d649c3484355 I keep getting: :( helpers.c compiles expected exit code 0, not 1 Log running clang -std=c11 -o is_rest is_rest....
0
votes
1answer
103 views

Multiple errors on pset4 resize, less comfortable

I have multiple errors when using check50 and I am not sure why. I realize that multiple people already addressed similar error as mine, but I do not understand the explanations. I would appreciate if ...
1
vote
2answers
90 views

pset 4 - recover: undefined behavior?

I got a question regarding check50 on pset4 - recover. If i run check50 a couple times in a row, without even compiling my code in between I get different results (might be all green smileys or ...
0
votes
1answer
52 views

speller compiles but horribly fails check50

i genuinely have no idea where the problem lies so any help would be appreciated, thanks in advance. check function bool check(const char *word) { trav = root; int index = 0; for (int ...
0
votes
1answer
245 views

Submissions via check50 does not appear on cs50.me

I have submitted my problem sets via check50 as instructed, but when I go onto my cs50.me page and check my scores, it says "No Submissions" next to each problem set. I have already linked my edx ...
0
votes
1answer
63 views

How to fix PSET2 Caesar errors?

below is my code for PSET2 caesar. I was very confident when I ran it, so I decided to check if it had any errors (and it did!) I am confused as to why this is occurring and I don't know what to ...
-1
votes
1answer
73 views

issue with check50 in pset2 caesar

This is my code https://pastebin.com/1uephEEh for cs50 pset2 caesar I am not able to find the problem I am getting correct output but somehow I am unable to pass the check50. If anyone could help me ...
0
votes
1answer
263 views

pset5 valgrind error

I was working on pset5 (speller), and I think my program seems to work. However, it does not pass check50, and I think that this might be due to the valgrind errors I am receiving (which I pasted ...
0
votes
1answer
92 views

pset4 recover fails check50 but gets all 50 images

This is a last resort, I've never asked a question here . . . I see all 50 images (I'm assuming that's correct for CS50?) :-) but check50 is saying it has not recovered 000.jpg, 001.jpg, 049.jpg, ...
0
votes
1answer
723 views

PSET1: Can't check hello.c

Doing on https://ide.cs50.io typing check50 cs50/2018/x/hello hello.c in ~/workspace/pset1/hello/ $ And got Uploading.. Unexpected token <
0
votes
1answer
459 views

Check50 returning error pset7 register

I get this error in register in pset7/finance when I run check50: :) application.py exists :) application starts up :) register page has all required elements :( registering user succeeds expected ...
2
votes
1answer
256 views

pset6 mario/more fails one check50 test despite getting correct output

My code passes all tests of check50 running check50 cs50/2018/x/sentimental/mario/more except this one: rejects a height of 24, and then accepts a height of 2 expected " # #\n## ##\n", not "" ...
0
votes
2answers
1k 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 ...
0
votes
1answer
82 views

PSET3 - MUSIC - check50 not recognising enharmonics

My code uses the minor scale pattern to calculate semitone distances and thus, frequencies of each note, and the "produces all correct notes for octaves 3-5" passes but fails for Ab3 and Bb5. I ...
0
votes
1answer
155 views

check50 pset2 vigenere problem

I've searched and find similar questions but I think my problem is different. If not sorry in advance for duplicate question. I manually test every case check50 tests and my code gives me the correct ...
0
votes
1answer
93 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
270 views

pset4 recover images do not match

I ran my code through the compiler and the recovered images are all blank. The images do not match when I ran my code through check50 as well. I can't identify the problem with my code. I would ...
0
votes
1answer
191 views

pset1 [credit ] I have the correct output, but Check50 says it's wrong

I have the correct output, but Check50 says it's wrong. Anyone have idea why? if ( checksum % 10 == 0 ) { // AMEX 15 digits; start with 34,37 if ( (length == 15) && (nd[...
0
votes
1answer
22 views

Grade on check50

Although a program is working perfectly, check50 finds "errors", "fixing" it and submitting it again will change the grade, or once it is submitted the first grade prevails? Thank you.
0
votes
1answer
91 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
427 views

pset7 finance check50 invalid purchase

I have seen a couple of questions on this problem, but the answers for them do not work for me. I am having the check50 problem on pset7 with check50 not finding 112.00. One answer was to use usd in ...
0
votes
1answer
53 views

Problem with greedy problem

What's wrong with my greedy problem code? #include<stdio.h> #include<cs50.h> #include<ctype.h> int main(void) { float x,a,b,c,d; float=get_float("O hai! How much ...
0
votes
1answer
234 views

CS50/Pset3/Music, timed out while waiting for program to exit, How to debug?

Something goind wrong in the frequency function and i don't know how to debug with these many files of the programm to allocate the problem. i've made a seprate test file to just test the frequency ...
0
votes
2answers
803 views

Pset7 Finance Register - Works fine but error in check50

I'm struggeling with this bug for several days now and don't know how to fix it. I didn't find an answer in all the previous questions. Except my personal touch I finished pset7. If I start flask ...
0
votes
1answer
43 views

Does anyone know how to fix this problem?

this error is in every check50 test. Conditional jump or move depends on uninitialised value(s): (file: dictionary.c, line: 92) Conditional jump or move depends on uninitialised value(s): (file: ...
0
votes
3answers
196 views

cs50 pset2 caesar check50

This is very frustrating. Have written this code 4 different ways and can not figure it out. First problem :( encrypts "a" as "b" using 1 as key expected "ciphertext: b\n", not "Ciphertext \nb...",...
0
votes
2answers
640 views

recover check50 gives "sorry, something's wrong! Let sysadmins@cs50.harvard.edu know!

I have been able to get recover to extract the 50 pictures but when I check my code I get the following message. Connecting.... Authenticating......... GitHub username: easybeinggreen GitHub ...
0
votes
1answer
200 views

Pset6 Sentimental Mario (more) check50 fails with correct output

My python code works correctly, outputting the appropriate number of spaces and #s to the terminal window, but it fails check50 for one test: :( rejects a height of 24, and then accepts a height of 2 ...
1
vote
1answer
117 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 ...
2
votes
2answers
441 views

Code Seems to Work but check50 says otherwise (pset2)

my code seems to work but check50 seems to disagree and has given me the following: :( encrypts "a" as "b" using 1 as key expected "ciphertext: b\n", not "ciphertext: b\x..." :( encrypts "barfoo" as "...
0
votes
1answer
287 views

pset7 - Buy doesn't return correct value

I've ran into an issue while running Check50 on what I thought was my functioning solution for pset7, namely it doesn't find the correct value in the index after trying to run the buy function. This ...
0
votes
1answer
221 views

CS50 Recover did not pass check50

I am currently struggling to pass pset4, specifically on Recover. I already search other questions in forum and it seems there were no solutions to my problem, so I am stuck. From card.raw i could ...
4
votes
1answer
1k views

pset6 - caesar - check50 error: “expected exit code 1, not 0”

I scored the web after an answer, found it, but still doesn't work. My caesar.py works fine, check50 shows me all happy faces except the last: :( handles lack of argv[1] expected exit code 1, not ...
0
votes
1answer
578 views

pset1 mario more

I just finished my mario pyramid, and tried myself, everything works. But in check50... :) mario.c exists. :) mario.c compiles. :) rejects a height of -1 :) handles a height of 0 correctly :( handles ...
0
votes
1answer
151 views

Pset 5 Program running fine but doesn't pass check50

This is my first time posting here, I tried everything I could think of but couldn't solve this issue. Would appreciate any help I can get. Thanks! I tried to implement a hash table to solve pset5. ...
0
votes
1answer
296 views

Caesar check50 fail

Just trying to finish the Caesar problem please see my code below: // INCLUDE THE APPROPRIATE LIBRARIES #include <math.h> #include <cs50.h> #include <stdio.h> #include <string.h&...
0
votes
1answer
248 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 2 3
4
5
13