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
12
votes
1answer
3k views

check50 returns unexpected end of input

I recently finished my code for pset5 recover.c. It compiles, and runs successfully and recovers all 50 pictures. But when I try check50, it gives Checking.............................................
10
votes
1answer
15k views

How to Use check50?

Here are some of the most frequently asked questions about check50. What is check50? What is an ID? How to run check50? How to know if my program is correct? Does check50 record my scores in CS50's ...
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 ...
4
votes
2answers
287 views

PSET4 resize more: Check50 indicates 3 errors (1x1px to 3x3 - 5x5 px)

I'm now doing the pset4 resize more version as I have already done the 'less version' with successfull check50. For my 'more version' check50 indicates 3 errors although visually my outputs look good....
3
votes
2answers
1k views

Why does check50 fail with status code 400?

For the last month, I've been trying to use check50 to see if I wrote the right code for the problem sets, but no matter which problem, it always fails with status code 400. Any idea what I should ...
3
votes
2answers
3k 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 ...
3
votes
1answer
1k views

Why doesn't caesar pass check50 even though the output is correct?

I have solved caesar, but check50 is not recognizing my results as correct. :) caesar.c exists :) caesar.c compiles :( encrypts "a" as "b" using 1 as key \ expected output, but not "b" :( encrypts ...
3
votes
3answers
3k views

Stuck on PSet1: I have the correct output, but Check50 says it's wrong

I'm stuck on the Mario part of PSet1. I've managed to write up my program and the output is always correct (or at least seems to be to me). I know it's definitely the loops that are making things ...
2
votes
1answer
6k views

Pset3: Plurality - Weird output!

This program is for counting the plurality for a list of candidates, Check Description for more info, The program works like this: Enter the candidate's name as an argument when running the program ...
2
votes
1answer
347 views

Why does my vigenere not pass check50 although it gives the correct output?

When checking vigenere.c with check50, I get the following :) vigenere.c exists :) vigenere.c compiles :( encrypts "a" as "a" using "a" as keyword \ expected output, but not "a" :( encrypts "world,...
2
votes
2answers
376 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 "...
2
votes
3answers
2k views

hacker1 - credit - Problems on some card numbers

The logic from hacker1: Multiply every other digit by 2, starting with the number's second-to-last digit, and then add those products' digits together. Add the sum to the sum of the digits ...
2
votes
1answer
271 views

check50 rejects greedy even if the correct answer is displayed

When I run check50 on pset1 it does not validate my solution, even if it says that the expected output is the same as the correct output. Does anyone know what the problem is?
2
votes
1answer
912 views

Speller works perfectly but check50 shows the error: “\ expected output, but not '\nMISSPELLED WORDS\nThe\nquick\nbrown…'”

I am having some major difficulties with pset6. I have gotten my program to work perfectly as far as I can tell. However when I try to run the program through check50, I get the following error ...
2
votes
1answer
315 views

Is Only check50 Being Used for Grading the psets?

I'm taking the course through edX and I've just received the grade for pset1. My grade was 0.39. Although my code has no problems, when I check it with check50, I get error messages. But not for code ...
2
votes
1answer
745 views

Pset3 Fifteen Check50 not Working

My code works when using the 3*3.txt as well as when I play it, but it is not accepted by check50. Here are my check50 errors: :) fifteen.c exists :) fifteen.c compiles :( init initializes 3x3 board ...
2
votes
2answers
651 views

pset2 initials compiles and outputs correct but errors

I'm having trouble with pset2 initials.c My program compiles and passes each output test, however after each test I get "wasn't expecting "Please enter your name:" The problem states that we are to ...
2
votes
1answer
566 views

check50 gives error “Expected output, but not ..”

Output errors of the check50 test gives me an interesting output: :( input of 0.41 yields output of 4 \ expected output, but not "4" And it does this for all the testing numbers. Since the output ...
2
votes
1answer
622 views

Failing one test case with check50 on pset2 - encrypts “say” to “szz” instead of “rby”

encrypts "world, say hello!" as "xoqmd, rby gflkp!" using "baz" as keyword # Checks 0 Running... clang -o vigenere vigenere.c -lcs50 -lm. ✔ 1 Expecting an exit code of 0. ✔ 2 Running... ...
2
votes
1answer
216 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 "" ...
2
votes
1answer
176 views

How does check50 works?

I am curious about how check50 works internally. What does it do to make that kind of tests for each program (each pset?). What if I want to implement something like check50? Any advice?
2
votes
1answer
153 views

Appliance still does not seem to have internet access

I'm having trouble using check50. I can browse with chrome and update50 works but when I use check50 the terminal or github it tries stuff for about 5 mins then gives up and says I should restart. I ...
2
votes
1answer
147 views

check50 error: CERT_HAS_EXPIRED

I'm using check50 to check my linear search algorithm in pset3, and it doesn't seem to be uploading or checking at all. Instead I get the message: Uploading.. CERT_HAS_EXPIRED and the second time: ...
1
vote
2answers
766 views

pset2 (vigenere) - Check50 error problems

I'm stuck on an issue with my code. After completing my code and making sure it works as should, I run check50 and this is what I get; jharvard@appliance (~/Dropbox/pset2): check50 2014/x/pset2/...
1
vote
1answer
2k views

“Invalid ID” error when submitting mario for check50

Did I miss a step in setting up my appliance? I am not sure what invalid ID refers to. jharvard@appliance (~/Dropbox/pset1a): check50 2014/x/pset1a mario mario.c Checking............ invalid ID
1
vote
1answer
518 views

pset4 check50 2016.recover recover.c is working correctly?

I'm not sure if check50 is working correctly? When i run my code, i recover all 50 jpg and i can view them. This is what i get when i run check50 2016.recover recover.c :) recover.c exists :) ...
1
vote
2answers
141 views

problem set 1 and check50 question

I have a problem with check50 and pset1. Specifically the greedy program. In every instance my code would seem to get the right answer, however when checked with the check50 widget I get back the ...
1
vote
4answers
1k views

check50 gives confusing results for pset4 resize

FOR CS50 STAFF ACTION: When I ran check50 against resize, I got a very confusing result. I've seen that others have seen the exact same result. Here's the problem - the output is giving negative ...
1
vote
1answer
1k views

check50 reports resize as incorrect for 1, 2, 3, 5 for seemingly correct code

is the check50 report for my code : jharvard@appliance (~/Dropbox/pset5/bmp): check50 2014/x/pset5/resize bmp.h resize.c :) resize.c and bmp.h exist :) resize.c compiles :( doesn't resize 1x1-pixel ...
1
vote
2answers
1k 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 ...
1
vote
1answer
182 views

PSET5: Why is my code working without fully implemented Unload function

My code is working fine and Check50 is also passing it. However I have not implemented Unload function and I am wondering why Valgrind or Check50 showing any error? All i did was changed return False ...
1
vote
1answer
374 views

PSET1 - Water fails check50: “expected prompt for input, not exit code of 0”

I'm working on PSET1's Water problem. Here's my code: #include <stdio.h> int main(void) { int m, b; printf("minutes: "); scanf("%d", &m); b = m * 12; printf("bottles: %d\n", b); } Check50 ...
1
vote
2answers
91 views

Can I use double instead of float

Can I use double instead of float? As it is more easy. Will that affect grading?
1
vote
1answer
588 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 ...
1
vote
2answers
86 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 ...
1
vote
1answer
109 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 ...
1
vote
1answer
2k views

how to check with check50 for 2017 users

I tried this code check50 2017/x/pset1/hello/hello.c but its showing Checking. invalid ID I was expecting the mistakes in my code https://ide.cs50.io/rahulatrkm/ide50#openfile-x link to my file which ...
1
vote
2answers
78 views

Pset6 check50 server1 parse error

I am having trouble addressing the below two errors when I run the first check50 of pset6. check50 2015.fall.pset6.server1 server.c :( Requesting cat.exe returns error code 501 \ expected output, ...
1
vote
2answers
123 views

pset6 server fails check50

I can't find why this doesn't work, can someon help me? Thanks. My code fails the following in check50 server1: :( Requesting cat.exe returns error code 501 \ expected output, but not "HTTP/1.1 ...
1
vote
1answer
48 views

Pset 5 - Question on check(), diff, and check50 (and I found it interesting)

With the help of @Blauelf and @Yuri Laguardia, I finally made my code working (my previous question here). Then I diff my own results with the staff's, and found that my check() function seem to be ...
1
vote
1answer
78 views

PSET6 - server.c, trouble with parse

I thought my parse() function was looking pretty good, but I keep consistently getting the same check50 (server1) error: :( Requesting non-existant file returns error code 404 \ expected output, ...
1
vote
2answers
1k views

pset4 recover: last image not recovered correctly

My program does return all 50 jpegs, check50 says that the last file is not recovered correctly. Unfortunately, I have no idea of why - I check for the end of the file before reading new data into the ...
1
vote
1answer
260 views

pset5 - possessives and substrings

I have posted this questions a few days ago, but none of us were getting anywhere. I thought maybe including my code for load as well as check might yield some new revelations. Anyway, here is the ...
1
vote
2answers
808 views

cs50x pset4 resize

Something's wrong here. Check50 doesn't like files that look fine to me. Here's my command line: jharvard@appliance (~/cs50x/pset4/bmp): ./resize 5 singleton.bmp qw.bmp Here's what check50 says: ...
1
vote
1answer
680 views

Check50 fails but my code works! [duplicate]

I have done my pset2 but my code fails check50 even though the code is correct and encrypts the text correctly. Here is the check50 output: :) caesar.c exists :) caesar.c compiles :( encrypts "a" as "...
1
vote
1answer
563 views

Invalid id error when using check50

When I type check50 2014/x/Dropbox/pset1/mario mario.c into the appliance command line, I get the error message: check50........invalid id. I've tried the fixes that other people have ...
1
vote
1answer
577 views

How to Fix “server responded with status code 400” Error?

Compressing hello.c... Compressed. Uploading...... Uploaded. Checking... server responded with status code 400. Try again later! Why is the server not working when its checking mario?
1
vote
1answer
147 views

Internet connection in the appliance

I can browse with chrome but can't run update50 or check50.
1
vote
1answer
3k views

What do these Check50 errors mean?

I get many compilation errors when I compile greedy.c. However, my mario.c and greedy.c programs with 2 and 3 residual appear to pass check50 tests! jharvard@appliance (~/Dropbox/pset1): check50 ...
1
vote
2answers
52 views

Unable to use check50/submit50 commands

I have installed the Linux subsystem, but I do not understand how to initialize it and also how to install the tools for the course on it. I am also thus unable to use the check50/submit50 command

1
2 3 4 5
12