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
1answer
31 views

pset4 speller - Check50 constantly returning errors

I am trying to submit my code for pset4 (speller) but Check50 seems to return an errors for most of the tests. I have tested my own code with the staff's solution and it seems to work fine there. Can ...
0
votes
1answer
27 views

Speller(hashtable method), long delay in output, and check50 not working

I finished all the TODO functions and fixed all the errors, but the program takes 20-25 seconds to output anything, the dictionary load time is 4.3 seconds in the output, the total time is 4.6 seconds,...
0
votes
1answer
28 views

pset 8 finance: :( sell handles valid sale

:) Struggle with the last check. Get this error message: expected to find "56.00" in page, but it wasn't found Tried the same approach like I used for the buy-function. Create an extra template to ...
0
votes
1answer
31 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
26 views

Valgrind passed (no leaks) but CS50 check fail

Hi~ Could you please tell me the reason I can’t pass CS50 check? It seems there is no error when I run valgrind ./speller texts/lalaland.txt (I count the nodecount q’ty during LOAD and confirmed the ...
0
votes
1answer
45 views

Help with weird bug in pset2 vigenere

After finishing most of the program, for some reason when check50 attempts to encrypt BaRFoo using keyword BaZ as well as the other attempts for the variations of barfoo and "hello, world", my code ...
0
votes
1answer
18 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
0answers
46 views

PSET3 Resize -resizes correctly Byte… doesn't match

I don't understand what I did wrong... Here's my code : // Copies a BMP file #include <stdio.h> #include <stdlib.h> #include "bmp.h" int main(int argc, char *argv[]) { int n = ...
0
votes
1answer
19 views

Check50 has Blank Output

I am trying to run check50 on my code, but it does not return anything; the output is blank, and it only returns a link to a check on https://cs50.me. Anyone know how to fix this problem
0
votes
1answer
26 views

Installing check50 gives error - check50: command not found

I am currently using a Windows Subsystem with Ubuntu 18.04 LTS, and I was trying to install check50 and submit50 following the instructions under https://cs50.readthedocs.io/. However, when I attempt ...
0
votes
1answer
42 views

Is there any way to use Check50 and Submit50 from CLion IDE?

I often use CLion for programming, and to complete my CS50 assignments, I would like to use CLion as well. At present, I know how to import CS50.h for using in CLion, but I couldn't find a way of ...
0
votes
1answer
52 views

Problem with Pset2 submission vigenere

I just wrote the program for cs50 pset2 vigenere problem. It ran perfectly when I tried to run it, with expected output. But on submitting, cs50.me check50 shows that my program does not show the ...
1
vote
2answers
62 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
45 views

Pset4, matching with staff solutions,but doesnt pass check50

I compared my output with all keys for every text, and it seems right, but when I use check50 all test cases fail for some reason. My code :https://gist.github.com/Praful932/...
0
votes
1answer
339 views

Pset8 Finance Check error

I consistently get this error when running check50 on pset8 Finance problem from CS50 when I assume it tries to add a new user that isn't in the user database. However when I enter a new user myself, ...
0
votes
1answer
38 views

Pset5 Speller returning one less word in text

So I have been at this problem for some time. I’m glad I have gotten as far as I have. I believe I just have a small step to go before I finish the problem set. (or maybe not). My trie seems to be ...
0
votes
1answer
73 views

pset3 resize(less) working correctly, but check50 show a bunch of "image has more bytes than expected

I'm not sure where I went wrong that is causing it to add too many bytes. When I test the program, it seems to resize everything correctly. Code: #include <stdio.h> #include <stdlib.h> ...
0
votes
1answer
32 views

Code runs fine until Check50 then it cannot load dictionary

Code runs as intended (other than some memory leaks that need to be fixed). But when I run check 50 my load function throws a "couldn't load file" error for whatever dictionary is being passed into ...
0
votes
1answer
61 views

check50 not approving my code but it looks like it's working

Check50 is telling me that none of the expected ciphers are working, however running each of them appears to give the exact same output it expects. I cannot see where the failure is coming from. ...
1
vote
2answers
429 views

Problems with check50 for pset2 caesar 2019

Hello! I have two questions that I hope someone can help out with! Q1) I just finished writing my solution for pset2-Caesar in CS50 Lab- When I try to check it with check50 I get an error message as ...
2
votes
2answers
950 views

pset6 python bleep

i have this failed test when i use check50 in pset6 bleep :( handles banned words lists with arbitrary words in them Log running python bleep.py banned2.txt... sending input My cat and dog ...
1
vote
1answer
19 views

pset 3 fifteen - check50 failure last 3x3, 4x4

I was going to check my solution to pset3 fifteen with check50 while I received two failure errors on the console (on the last 3x3 and 4x4 checks). :) fifteen.c exists. :) fifteen.c compiles. :) ...
0
votes
1answer
24 views

Why does check50 upload?

I'm just wondering why check50 has an upload stage to begin with? What is it uploading? $ check50 cs50/2018/ap/pennies Connecting......... Authenticating...... Preparing................ Uploading........
0
votes
0answers
45 views

CS50's Mobile App Development: Cannot evaluate or check50

Is there a way to test or evaluate my CS50m project0 and future projects? There are no instructions regarding evaluation. I have already pushed my code to the cs50/mobile/2018/x/projects/0 branch of ...
1
vote
1answer
82 views

pset 6 - similarities, check50 error

Getting an error on Check50 for Similarities, Pset6. When I run Check50 the log file states: :( helpers.py compiles No module named 'numpy' I'm using the numpy package for setting up the 2D matrix. ...
0
votes
1answer
48 views

Pset 7 - check50 error on buy

Almost finished Pset7 but I'm getting an error on Check50 that I don't understand. The log file says: :( buy handles valid purchase Log sending POST request to /login sending POST request to /buy ...
0
votes
2answers
60 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
88 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
191 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
74 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
67 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
150 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
24 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
22 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 ...
1
vote
1answer
270 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
400 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
34 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
143 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 page ...
0
votes
1answer
184 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
88 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
74 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
55 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
36 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
103 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
45 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
47 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
82 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
65 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
447 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
270 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 ...