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
14 views

problems with little professor not rejecting inputs that check50 says it should

When I run locally the program behaves as I think it should. But when I run it through check50 it fails saying that I dont reject inputs that I should reject. import random def main(): while True:...
Mathika Wariyapperuma's user avatar
0 votes
1 answer
36 views

Check50 marks my "Quote" as if not functioning properly despite looking identical to the staffs solution

I thought I had finished pset9 and had check50 have a quick look at it and it repeatedly gave me the output: :( quote handles valid ticker symbol expected to find "28.00" in page, but it ...
Ganymede's user avatar
0 votes
1 answer
13 views

can't seem to figure out the problem with the sell route code

can't seem to figure out the problem with the sell route code that check50 indicates this is my sell route code: @app.route("/sell", methods=["GET", "POST"]) @...
Michael's user avatar
0 votes
1 answer
96 views

Why am I failing check50, Cs50p Little Professor

I get this reply after executing check50: :) professor.py exists :( Little Professor rejects level of 0 expected program to reject input, but it did not :( Little Professor rejects level of 4 ...
Mikail Kuehl's user avatar
0 votes
1 answer
22 views

My code look correct and work correctly for all other sequence but check50 says sequence/18 is wrong, expected "No match" not harry

import csv import sys global y def main(): y = 0 x = 0 t = 0 # Check for command-line usage if len(sys.argv) != 3: sys.exit("Usage: python dna.py data.csv sequence....
Michael's user avatar
0 votes
0 answers
101 views

Lab 1, error "check50 is taking longer than normal!"

I am on lab1 and when I go to check50 there is the following error: this is taking longer than normal! It is the same thing when I go to style50 but it says it failed to connect to servers. This is ...
Code Freak's user avatar
0 votes
0 answers
27 views

CS50 PSET4 Recover. Files created, images visible, why check50 fail?

Why isn't check50 clearing even though the files are created and the images are visible? #include <stdint.h> #include <stdio.h> #include <stdlib.h> typedef uint8_t BYTE; typedef ...
Don Tan's user avatar
0 votes
1 answer
110 views

:( logging in as registered user succceeds Problem Set 9 Finance TypeError

I can't find the problem with my register function. So, I've been pouring over the code for hours now, tried taking breaks, focusing for a long time, none of it worked. And check50 is really ...
Mohamed Amr's user avatar
0 votes
0 answers
16 views

How to make pset 3 runoff effect multiple eliminated candidates?

#include <cs50.h> #include <stdio.h> #include <string.h> // Max voters and candidates #define MAX_VOTERS 100 #define MAX_CANDIDATES 9 // preferences[i][j] is jth preference for ...
Harr's user avatar
  • 35
0 votes
0 answers
8 views

For CS50 plurality, check50 says that my code doesn't print the winner of the function. But it does?

#include <cs50.h> #include <stdio.h> #include <string.h> // Max number of candidates #define MAX 9 // Candidates have name and vote count typedef struct { string name; int ...
Harrison 's user avatar
0 votes
1 answer
30 views

CS50 2023 Problem Set 1 Mario-more Check50 incorrect?

I am fairly confused with the Check50 results. I seem to have written the correct code for this problem and all testing shows its working as intended. My code is below: #include <cs50.h> #...
Justin Zhou's user avatar
0 votes
1 answer
77 views

Check50 PSET9 Finance Failing Throughout

First post here...seems I'm coming unstuck at the pointy end of the course. Hahaha! My code doesn't seem to be passing Check50 through Quotes/Buy/Sell - although the functionality seems to be fine ...
Jumbot's user avatar
  • 3
0 votes
1 answer
44 views

CS50 Speller works but check50 doesn't

My code seems to work fine with all text files. When I look at the errors it doesn't even show actual output, why could that be? https://submit.cs50.io/check50/e963f4484de14f0b73f8fca9a5e9431556cb649a ...
MUKTANANDA MICHAEL STIMPFIG's user avatar
0 votes
1 answer
28 views

Mario pyramid works, but check50 not buying it

The pyramid looks right, but cs50 says it isn't. int main(void) { int height; do { height = get_int("Specify height. Write a number between 1 and 8: "); } ...
VaVa's user avatar
  • 101
0 votes
1 answer
164 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: ...
DRSR's user avatar
  • 1
0 votes
0 answers
52 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.
Mippy Magic's user avatar
0 votes
1 answer
234 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 ...
Hazel's user avatar
  • 1
0 votes
1 answer
76 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 ...
Conor O'Mahony's user avatar
0 votes
1 answer
247 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 ...
Aleksey Tsalolikhin's user avatar
0 votes
1 answer
206 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) ...
Hamster1303's user avatar
0 votes
1 answer
53 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 :) ...
Hamster1303's user avatar
0 votes
0 answers
9 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 ...
Sai Sanketh G's user avatar
0 votes
0 answers
50 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/...
warand rule's user avatar
0 votes
1 answer
161 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 ...
BrassyGiraffe's user avatar
0 votes
1 answer
52 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 ...
578574's user avatar
  • 1
0 votes
0 answers
39 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.]
Santhosh's user avatar
0 votes
2 answers
118 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 ...
dohaal's user avatar
  • 1
0 votes
1 answer
98 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 ...
Cosmic's user avatar
  • 1
0 votes
1 answer
29 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; //...
Anthony Jackson's user avatar
0 votes
1 answer
102 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 ...
Abdullah Shahzad's user avatar
0 votes
1 answer
419 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 ...
dkevin77's user avatar
0 votes
1 answer
512 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 ...
Edouard's user avatar
  • 101
0 votes
1 answer
472 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 &...
yosef's user avatar
  • 5
0 votes
1 answer
101 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. ...
Shubham Gupta's user avatar
0 votes
0 answers
123 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 &...
sage7major16's user avatar
0 votes
1 answer
56 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 ...
Ibhi Yassine's user avatar
0 votes
1 answer
228 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 ...
kai.468's user avatar
0 votes
1 answer
516 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 ...
Gustavo Oliveira's user avatar
0 votes
1 answer
346 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): ...
magne bolgen's user avatar
-1 votes
1 answer
22 views

terminal isnt working

My terminal started to look like this. I am unable to use check50 or submit50 and cant change directory.
Hope Braga's user avatar
0 votes
3 answers
2k 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 :) ...
Ehsan_hrz's user avatar
0 votes
1 answer
534 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 ...
the-great-potato's user avatar
0 votes
4 answers
3k 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. ...
shiva kharbanda's user avatar
0 votes
1 answer
306 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> #...
the-great-potato's user avatar
0 votes
2 answers
276 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, ...
jeddah's user avatar
  • 5
0 votes
2 answers
106 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 ...
Leo8479500282664829200's user avatar
0 votes
0 answers
94 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 ...
cplusplusnoob's user avatar
1 vote
1 answer
244 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/...
Naveen sharma's user avatar
0 votes
1 answer
114 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 ...
DragonSlayer's user avatar
0 votes
1 answer
119 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 :( ...
bloodycoder's user avatar

1
2 3 4 5
14