Skip to main content

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
0 answers
20 views

Pset4: Check50 is not compiling my code for Filter-More

I tested my code and all functions seem to be working fine, I don't know what else to do. This is the output from check50, there are no warnings or hints about what I might be doing wrong. https://...
gabi's user avatar
  • 1
0 votes
2 answers
26 views

Felipe's Taqueria: output check problem

This is my code for the Felipe Taqueria's problem and the output is as expected but I am required to output "Total" before the prompt "Enter your order" but I am unable. Someone ...
Grace 's user avatar
  • 25
0 votes
2 answers
37 views

PSET 5 - Speller: Compiles locally, check50 says it doesn't

I know this is one of the most frequently asked questions here, since I' ve spent more than an hour reading posts by people that faced similar problems. But still, I can't tell what's going on in my ...
Stavros Marinos's user avatar
0 votes
0 answers
37 views

Problems configuring desktop visual studio code to use check50

I have followed these instructions for using ssh to log in to gitHub in an attempt to get check50 and submit50 working in my desktop VS Code. After completing all instructions, I get the following, ...
MrC's user avatar
  • 1
0 votes
1 answer
107 views

Getting invalid slug with check50

I'm trying to check my degrees.py project for the CS50 AI course. I am pointing check50 at my Github repo but I continually get an Invalid Slug error. Does the repo need to be public? I fails when ...
GitToSteppin's user avatar
0 votes
0 answers
13 views

pset4 reverse, check50 says file is not reversing as specified, even though the output file has a reversed version and seems fine

#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "wav.h" int check_format(WAVHEADER header); int get_block_size(WAVHEADER ...
Bijal Shrestha's user avatar
0 votes
1 answer
215 views

Pset 9 finance does not pass last checking that "AAAA" is in page

Please someone help me to identify what is the root of the problem. I have little time before the new year to submit this task and the final project. The problem is with the check50 of the history of ...
Greg's user avatar
  • 3
0 votes
1 answer
44 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
71 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
20 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
217 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
33 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
156 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
36 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
197 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
24 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
15 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
41 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
87 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
56 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
29 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
287 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
1 answer
464 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
114 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
354 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
321 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
56 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
1 answer
197 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
67 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
40 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
166 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
152 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
30 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
104 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
505 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
1 vote
1 answer
606 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
  • 121
0 votes
1 answer
528 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
121 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
129 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
58 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
340 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
907 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
368 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
23 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
4 answers
3k 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
558 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
336 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
392 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
126 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

1
2 3 4 5
14