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

Check50 says the answer is wrong in the outdated.py problem but it is right. Help, how to solve?

I'm new here. I'm solving the Outdated problem. It seems it works as expected but, check50 says it is wrong. When I do it manually it works. Manually: Date: 9/8/1636 1636-09-08 Results from check50: ...
  • 1
0 votes
0 answers
15 views

How do I run check50?

I haven't been able to figure out how to run check50, and when I search up how, all the sources are outdated and don't work? Is there anyone who can help me? Thanks.
0 votes
1 answer
34 views

bash: check50: command not found

This is how I checked using Ubuntu whether or not the check50 and submit50 commands were already installed. However, in my Visual Studio Code the commands are still not found. What should I do? It has ...
  • 1
0 votes
1 answer
26 views

pset5: Check50 fails for Speller but everything looks good

I wrote dictionary.c. It compiles. There are no issues with valgrind. It appears to run correctly (when comparing with answer keys). Everything looks good. But when I run Check50, it runs into issues ...
0 votes
1 answer
43 views

cs50p check50 says my program doesn't pass all checks, but pytest says that it does

check50 says my program doesn't pass all checks: $ check50 --local cs50/problems/2022/python/tests/fuel Checking........ Results for cs50/problems/2022/python/tests/fuel generated by check50 vlocally ...
0 votes
1 answer
35 views

Recover runs, but leaks 472 bytes in 1 block

The code for recover (pset4) works fine, and has passed check50, except for the last check - no memory leaks. Valgrind shoots back: ==5482== Memcheck, a memory error detector ==5482== Copyright (C) ...
0 votes
1 answer
30 views

Code for Good ol' Recover returns all fifty images (000-049), but doesn't pass Check50

I have gone through about 12 questions on the same issue - the code for recover works, but check50 isn't being kind: :) recover.c exists. :) recover.c compiles. :) handles lack of forensic image :) ...
0 votes
0 answers
6 views

when i try to use check50 and submit50 it stops at authenticating

enter code her[![enter image description here][1]][1]e when i try to submit or check for the problem it stops at the authentication...it is happening since last month. Before I was able to use ...
0 votes
0 answers
28 views

My Check50 program is not working in wsl, it shows some error

check50 cs50/problems/2022/python/game Connecting............................................................................................. Traceback (most recent call last): File "/usr/lib/...
0 votes
1 answer
68 views

CS50 PSET 4 Filter-less, Blur function not filtering 3x3 and 4x4 images correctly

I have read many similar problems on here about the same issue. I believe my function is correct, although redundant and not very stylish. It should however get the job done. I get the same pixels ...
0 votes
1 answer
31 views

substitution - my code passes all tests manually, but not check50

My code for substitution appears externally to be working correctly. It takes the key as an argument and prompts the user for the plaintext message. Both uppercase and lowercase keys work, and a ...
  • 1
0 votes
0 answers
36 views

I'm working on pset5 - speller, it works fine when I run/test it, but when I run 'check50' it show this error. help me with this

[EDIT: Code removed for Harvard Honor Code compliance.]
0 votes
2 answers
38 views

PSET 5 Speller Check50 Problem

I think I have done everything you're supposed to do in PSET5 Speller. when I manually check the outputs of my code, it works perfectly well. It matches the staff solutions one to one. Yet Check50 ...
  • 1
0 votes
0 answers
10 views

"Finance" web app check50 error

I finalized pset9 Finance web app. It works fine locally but when I try to check with "check50 cs50/problems/2022/x/finance" it prints the traceback below: File "/usr/local/bin/check50&...
0 votes
0 answers
39 views

CS50 AI lecture 0 search. I tried to implement Maze.py by myself

But I don't know how it's stuck in an infinite loop. I added the explored variable. If the node is examined it shouldn't get added to the frontier. But still, it's stuck in an infinite loop. The same ...
  • 1
0 votes
1 answer
25 views

PS4: Recover - Code recovers all 50 images perfectly but fails check50. help pls :(

#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <inttypes.h> int main(int argc, char *argv[]) { typedef uint8_t BYTE; FILE *outptr = NULL; //...
0 votes
1 answer
94 views

PSET 4 Recover I am not getting all the checks in my program

The program works fine but the last condition is not fulfilled. Valgrind tests failed. I know I have to close the opened files but I cant seem to figure out where to do that. Please help. Following is ...
0 votes
1 answer
221 views

CS50P PSET7 Working Check50 Error

I was wondering what causes the check50 final test case to yield an error. The error message is as follows: :( test_working.py catches working.py not raising ValueError for invalid time format ...
0 votes
0 answers
44 views

Check50 can't register but I can, Check50 can register with duplicate usernames but I can't

Been stuck on this for almost a month so I am getting a bit desperate. As the title says Check50 can't register but I can, and since I can't duplicate the problem I don't know how to fix it. :( ...
0 votes
0 answers
87 views

first order logic sentence

Consider, in first-order logic, the following predicate symbols. Student(x) represents the predicate that "x is a student." Course(x) represents the predicate that "x is a course." ...
0 votes
1 answer
385 views

Check50 is broken on Problem set 9 (Finance)

I made a previous very advanced version of Finance. But after checking it with check50, almost every checks failed. I decided to throw it all away and make a very scholar version of it, making ...
  • 101
0 votes
0 answers
18 views

CS50 - Why does i get clang:error: linker when make calculator

[![enter image description here][1]][1] Why does my code get an clang: error: linker command failed with exit code 1 (use -v to see invocation) [1]: https://i.stack.imgur.com/zrqTU.png
0 votes
1 answer
288 views

cs50 pset2 substitution

hey i think my code is correct, ive compiled it and tested it. check50 is not passing it. the error messages and my code is below. can someone please help? :( encrypts "This is CS50" as &...
  • 5
0 votes
1 answer
63 views

CS50 Finance check50 giving 400 error despite working well

I have coded the CS50 Finance problem set and it seems to be working fine from my end. However, check50 throws a 400 error for Post request on /register. Even in the console, I don't see that error. ...
0 votes
0 answers
87 views

Pset5 Speller Memory Problem

I am having a memory issue with my program in speller. Check50 returns all green except for the last line which says :( program is free of memory errors expected "MISSPELLED WOR...", not &...
0 votes
1 answer
45 views

caesar.c check problem

I finished my caesar ps but when I check it says that my code is not correct for example the said it didn't encrypt an a to a b if the key is 1 even though when I check it myself I see that the answer ...
0 votes
1 answer
94 views

Check50 fails at "code compiles" but code compiles and runs for blur, reflect and grayscale

I guess I'm doing something wrong, but the problem is the following: I'm working on pset4 (filter-more) and already implemented the -g, -b and -r options (-e still missing). Within VSCode, my program ...
0 votes
1 answer
213 views

CS50 Finance ValueError: FOREIGN KEY constraint failed

this error has getting me for a while now. From what I researched, it commonly occurs when inserting a wrong type in a column field or a value in the wrong order. Even though it appears in check50, I ...
0 votes
1 answer
177 views

Solved: Little Professor claims my program doesn't output a score in the end

So every other check50 test passes, but for some reason not thr one with scire and I can't understand why. My code: import random def main(): i=0 lvl=get_level() correct=0 while(i<10): ...
0 votes
0 answers
47 views

error with check50

menu = { "Baja Taco": 4.00, "Burrito": 7.50, "Bowl": 8.50, "Nachos": 11.00, "Quesadilla": 8.50, "Super Burrito": 8.50, "Super ...
  • 1
-1 votes
1 answer
21 views

terminal isnt working

My terminal started to look like this. I am unable to use check50 or submit50 and cant change directory.
0 votes
1 answer
1k views

cs50p problemset 7 /working.py

mo code works fine and passes al teat in test_working.py but i dont know why i get this error :) working.py and test_working.py exist :) working.py does not import libraries other than sys and re :) ...
0 votes
0 answers
107 views

CS50P PSET4: Little Professor timed out

I'm solving this problem. My code works when I test it but it is failing check50 with the error :( Little Professor accepts valid level // timed out while waiting for program to exit Here is my code: ...
  • 1
0 votes
1 answer
378 views

CS 50 Pset 1 cash: non-void function does not return a value

I have finish a program and it can run smoothly on other platform like replit... But one I run it on vs code it shows the following error and it also have something weird happen when I run check 50 ...
0 votes
4 answers
1k views

:( Little Professor generates 10 problems before exiting

hi i am solving this question >> https://cs50.harvard.edu/python/2022/psets/4/professor/ my code is 100% correct. i have tested it several times but check50 is not able to pass all the tests. ...
0 votes
1 answer
235 views

check50 issue on Problem Set 1: cash [duplicate]

I have finish my cash homework enter link description here But I face an issue that I can't check it even when I run the program successfully. My code is as below: #include <stdio.h> #...
0 votes
2 answers
154 views

speller seg fault

I have been on this for literal days, there is always a seg fault no matter what i do things i have tried: debug 50: MULTIPLE TIMES, i fix the errors i find but end up with another one soon after, ...
  • 5
0 votes
2 answers
74 views

check50 says i have no output on pset2 substitution, but my code does output correctly

On my end my code seems to output exactly what check50 wants, yet it says that ive outputted nothing. e.g :( encrypts "A" as "Z" using ZYXWVUTSRQPONMLKJIHGFEDCBA as key Cause ...
0 votes
0 answers
70 views

pset9 Finance Check50 bot says submission button not found

I have completed my application for pset9 and have all functions working properly, however check50 doesn't agree with my register implementation. Apparently, I do not have a submission button, however ...
1 vote
1 answer
181 views

Check50 and style50 not working: pset1

I am getting this error when I am trying to use check50 or style50. Please help me with this. hello/ $ hello/ $ check50 cs50/problems/2022/x/hello Traceback (most recent call last): File "/usr/...
0 votes
1 answer
70 views

Problem with Check50

Check50 keeps telling me that my code failed to compile but when I compile it myself it compiles just fine. Why is this happening? Also, I am experiencing this problem on the Plurality problem in ...
0 votes
1 answer
111 views

Question CS50 2021 Caesar - where is the bug?

I'm currently struggling with a bug in caesar pset2. If i use check 50 everything is green except: :( encrypts "a" as "b" using 1 as key output not valid ASCII text :( ...
0 votes
1 answer
1k views

pset1 cash 2022

hello guys I got en error from check50 2022 which you can see it in my screenshot I check it 100 times but I can't resolve the problem can you please help me? #include <cs50.h> #include <...
1 vote
0 answers
26 views

check50 doesn't work after cs50x migration to new VS ide

Your help is appreciated! check50 doesn't work in the new VS ide after migration (pset9): bash: cs50/problems/2022/x/finance: No such file or directory
-1 votes
1 answer
82 views

PSET4 - Filter(more)- Edges- Check50 error

#include"helpers.h" #include <math.h> int check_cap(int num); void edges(int height, int width, RGBTRIPLE image[height][width]) { RGBTRIPLE image_copy[...
0 votes
0 answers
107 views

The predefined login function psets/9/finance error

Have a problem with check50. I'm able to register, log in and all but check50 keeps denying it (the login part): :) application.py exists checking that application.py exists... :) application ...
0 votes
1 answer
262 views

Check50 says buy allows fractional, negative numbers but it doesn't. Where am I going wrong?

I'm down to my last check50 frown (:( buy handles fractional, negative, and non-numeric shares expected status code 400, but got 200) but my code doesn't allow for these, so I don't know what to do. ...
  • 14
0 votes
0 answers
1k views

Invalid slug error

When trying to go through the steps in lab 1 for hello.c. I am getting the below error ~/ $ check50 cs50/problems/2021/pset1/hello ...
0 votes
0 answers
57 views

Pset9 problem at check50 tests

hello, i've tried "112.00" in my solution and cs50's solution and the result is same "invalid shares" but i don't know why this error occur. i'm really stuck any help please
0 votes
0 answers
206 views

Help on Plurality Pset3

I'm trying to solve assignment "Plurality" of Problem set 3. However, check50 didn't prove to be quite useful for me this time. I'm having only one error message saying "print_winner&...

1
2 3 4 5
14