Questions tagged [whodunit]

whodunit.c, one of the assignments for Problem Set 4, will challenge you to manipulate the color value of pixels in a bitmap image in order to reveal a hidden image.

Filter by
Sorted by
Tagged with
0 votes
1 answer
40 views

I could not get the desired output because when I click the verdict I could not find who done it

// Copies a BMP file include include include "bmp.h" int main(int argc, char *argv[]) { // ensure proper usage if (argc != 3) { printf("Usage: copy infile outfile\n"); ...
0 votes
0 answers
16 views

Why I am getting blank verdict on whodunit?

// Copies a BMP file ​ include include ​ include "bmp.h" ​ int main(int argc, char *argv[]) { // ensure proper usage if (argc != 3) { printf("Usage: copy infile outfile\n"); ...
0 votes
1 answer
121 views

PSet 3: Help with colors for "whodunit"

I've successfully decoded the solution to "Whodunit" from CS50 2018 (won't put the spoiler here, though will say the culprit's name has six letters), but will admit it was a lucky guess involving ...
1 vote
1 answer
295 views

how to answer whodunit questions

i don't know how to answer those questions there's no clue how to solve them i checked all the links doesn't include most of them, though i finished the pset. Any help would be very appreciated.
  • 35
0 votes
1 answer
70 views

pset4 WHODUNIT Is there a way to wget the files on the CS50 IDE?

I'd like to complete the whodunit using CS50 IDE. Is there a way to use wget to get the files from WHODUNIT so i can work on them?
0 votes
1 answer
188 views

What are primitives?

In the WHODUNIT problem set in week 3 it says: "Open up bmp.h, and you’ll see actual definitions of those headers we’ve mentioned, adapted from Microsoft’s own implementations thereof. In addition, ...
-1 votes
1 answer
87 views

I've submitted a problem to gitHub but when I click check50 it says: "There are no results to display"

The problem is listed in "submissions" but I get "There are no results to display" when I try to run check50. And in Scores it says "no submission" even though it has been submitted. Any idea why ...
0 votes
1 answer
434 views

Problem set 3, Whodunit

I ran my program, I only see less red noise. I can’t make out anyone or anything! [This is the verdict, with less red]
0 votes
1 answer
165 views

PSet3 WhoDunit open ended question materials

I'm currently on Pset3 WhoDunit. Part of the task is to answer open-ended questions. What I don't quite get is the connection of these questions to the Lecture or Shorts - some of the questions are ...
  • 1
1 vote
2 answers
701 views

Stuck on pset3, Whodunit

In Whodunit, you are asked to go into CS50 Lab and answer questions on how a file called copy.c works. They give you two links to BITMAPINFOHEADER and BITMAPFILEHEADER. Then, it says you should open a ...
  • 42
1 vote
0 answers
851 views

pset4 whodunit.c could not open the infile please help

My program does not open the infile I am trying to find it out but I could not please help. Thank you! // Copies a BMP file #include <stdio.h> #include <stdlib.h> #include "bmp.h" int ...
1 vote
1 answer
140 views

pset4 whodunit question with !==

Why doesn't !== work here? First if statement sets all the red colors to white. Second one, I was trying to make all other colors more darker so hidden image would become clearer. I was able to solve ...
0 votes
1 answer
266 views

pset4 whodunit how to submit

per the instruction of whodunit, "When submitting this problem, you’ll be asked whodunit!". However, when i submit, it does not ask me what is the whodunit. even though check50 shows all green but i ...
  • 27
0 votes
1 answer
122 views

Error 404 when trying to download Pset4 distribution. Please help!

I'm trying to download the Pset4 distribution using the following command in my CS50 IDE terminal. and I get the following response: ... ... Connecting to codeload.github.com (codeload.github.com)|...
0 votes
2 answers
214 views

pset4 how does incrementing j help to iterate over pixels?

I'm currently working my way through understanding the code of copy.c used in "whodunit" and "resize". This loop is supposed to iterate over the scanlines of a Bitmap (by incrementing i) and within ...
0 votes
0 answers
164 views

pset4 whodunit: where do I say whodunit

I finished whodunit and submitted my code but I was never asked whodunit. How do I answer the final question?
0 votes
1 answer
85 views

pset4 whodunit can't understand the infile pointer

In this whodunit copy.c the input filenames and output filenames are entered as command line arguments but I couldn't understand that How does inputting the file name will point to the file. // ...
0 votes
0 answers
529 views

Pset4 whodunit questions

In pset4 whodunit I start with a screen with too much red. Below I thought of two methods that could work. Will both methods work? Do I need to add more code to make it work? Where do I place this in ...
0 votes
0 answers
233 views

Cannot submit a problem

I am trying to submit 'whodunit'. I get the message: Invalid slug. Did you mean to submit something else? I have updated my IDE (update50) and am in the correct directory. I realise that I am far ...
  • 3
0 votes
1 answer
260 views

Copying on whodunit

I'm confused about how I should be using copy in whodunit. What file should be the infile? Which one should be the outfile? How do I view the outfile? Thanks
0 votes
1 answer
662 views

Starting whodunit

I just finished pset3, so now I'm starting on pset4, and I'm not quite sure how to start whodunit? I think you should copy the clue (I'm not sure where to copy it to though) and iterate over each of ...
0 votes
1 answer
118 views

whodunit message is very blue pale. is it part of the homework to learn to put the blue pale darker ?

I understood that making all the red going away, make the color cyan. When I put all the colors black, the message was still in red. The message in blue cyan is not very clear but I can read it. It ...
  • 30
0 votes
1 answer
223 views

Pset4 Whodunit - Enhance colors

I've successfully managed to remove the red pixels and now I want to enhance the other pixels, so that the message is more clear. The way I am try to do is the the following: If the pixel is red I ...
0 votes
1 answer
233 views

ps4 Whodunit - how to code white colors

I have 2 questions. 1 - I did succeed to see the message with replacing red by white. But I can't replace the red by white ? what I am doing wrong please ? // read RGB triple from infile fread(&...
  • 30
0 votes
1 answer
469 views

Pset4-Whodunit invalid operands to binary expression

for (int i = 0, biHeight = abs(bi.biHeight); i < biHeight; i++) { // iterate over pixels in scanline for (int j = 0; j < bi.biWidth; j++) { // temporary storage ...
  • 29
1 vote
1 answer
57 views

copy.c of pset4>>whodunit not creating perfect copies

When I run copy.c it creates a copy of clue.bmp but the clcp.bmp(the copy of clue.bmp) seems to differ according to diff. But when I try to do the same with smiley.bmp it works.
  • 15
0 votes
1 answer
305 views

Stuck on whodunit/pset4

I am working on whoodunit/pset4 and though I have removed the red noise and turned the reds to green and whites to yellow my image doesn't reveal any person or verdict so to speak, it moreof looks ...
  • 312
1 vote
1 answer
24 views

Resize not resizing - only filling in center of image?

I tried following the pseudocode from the walk through and it compiled, however the image did not resize - rather the center filled in green. I hope my only problem is that I fail to skip over the ...
  • 185
1 vote
1 answer
340 views

Did I finish the whodunit problem?

I have struggled to progress with the whodunit problem for hours: I watched the walkthrough from this year and older; I read various other forum question; and I read various documentation. The ...
  • 185
0 votes
1 answer
441 views

Getting started with whodunnit?

I am trying to get started on this problem set. The walkthrough says that the first step in copy.c is to find the code that opens the clue. That I see to be already done with this code: // ...
  • 185
1 vote
1 answer
196 views

How to save images of whodunit into the CS50 IDE

I had downloaded the Images and the codes but I can not understand that How to save the downloaded file into the CS50 IDE. If someone knows that Please Help me!!
  • 264
0 votes
1 answer
119 views

what's the picture I should see

I wrote the code for whodunit.c but when I looked at most of the questions in here, all of it shows a picture of a man, for me this is what I get: [removed per academic honesty policy] did they ...
0 votes
1 answer
201 views

whodunit how to compile? refresh verdict.bmp?

there. Can anyone tell me how will I able to see the changes to the verdict.bmp after I have written some codes in whodunit.c?
0 votes
1 answer
185 views

Pset4 how does the copy loop work

Ive just got to pset4 and it seems a bit of a jump from pset3, I'm trying to understand how everything works before diving into the problem. This loop in my mind which is copying the bmp files goes ...
0 votes
1 answer
275 views

pset4 whodunit should it be clear as day?

After playing around with the colors and not being able to get it perfect. Is the bmp that we create using whodunit ment to be clear as day? mine is faint, i am just not quite there yet or is that how ...
0 votes
1 answer
164 views

Pset4 Whodunit -- Why does darkening the pale blue add the red back in?

I successfully removed the red from clue.bmp and got the light-blue mug shot on a white background. Then I added another section of code to darken the blue (by reducing the blue and green values by ...
0 votes
1 answer
97 views

Pset4 whodunit yellow background

I don't know what part of my code is wrong. I tried changing the value of triple.rgbtBlue, triple.rgbtGreen and triple.rgbtRed but the result is the same, with an yellow background. Please help. for (...
0 votes
1 answer
147 views

Pset4 whodunit I have much enhanced the pic it can be seen easily now, But still cant recognize the person

Here is the image, I am not american maybe he is american celebrity. [![enter image description here][1]][1] spoiler image removed
0 votes
0 answers
237 views

person not recognized

this is image after getting the red out,but the person is still not recognizable.Is this the solution or i need to enhance the image.
0 votes
2 answers
973 views

Pset4 Whodunit: The person is still unrecognisible

this is the image I am getting which I still can not recognise who this guy is, so the question is is this enough or do I somehow enhance the image?
1 vote
2 answers
5k views

Pset 4: Whodunit Red to white

When I run my whodunit on clue.bmp, I get the same red image as clue.bmp. Any advice on how to get rid of the red? Thanks in advance! Here is the code where I attempt to turn the red white: // ...
0 votes
0 answers
77 views

Bitmap Header info

How could I see the bmp header/metadata info for the verdict.bmp file. Is there any command exist similar to 'peek large.bmp' ?
  • 3
0 votes
1 answer
515 views

pset4 - Whodunit. Pale colors

Anyone on Whodunit, interested in discussing it a bit? I managed to remove red noise and ended up with a picture of faint shades of greenish blue (or maybe the other way around - blueish green ;-) ) ...
0 votes
1 answer
650 views

Pset4 whodunit question

I'm trying to change the blue in clue.c. Right now, I made all the red into white, but i'm confused why my code doesn't change the remaining into black? Here's what i have. I'm trying to say, if it's ...
  • 41
0 votes
1 answer
368 views

Command ./whodunit clue.bmp verdict.bmp generating error

I didn't change anything in my program yet (besides copying copy.c to whodunit.c) and tried to run the command "./whodunit clue.bmp verdict.bmp" which is given in the instructions. When I did that the ...
  • 11
2 votes
2 answers
790 views

Whodunit TO DOs

In "whodunit", I've successfully removed the red spots and the verdict.bmp reveals the face of a person in multiple shades of blue. My question is am I expected to further "enhance" the image by ...
  • 55
0 votes
1 answer
296 views

whodunit : why do slight adjustments have such drastic results?

Just before hitting "submit" I solved my own problem, but I thought I would share my question and answer, in case someone else ends up with the same problem. As an intro note: I've noted that you don'...
  • 253
0 votes
3 answers
731 views

Red has been turned to white, now how do I turn blue to black?

Red has been turned to white, now how do I turn blue to black? I have written a new loop next to the first loop but it does not work. if image is all blue red = 0x00 blue = 0x00 green = ...
5 votes
3 answers
6k views

Pset4 Whodunit: Any way to enhance the image?

So I removed all the 'red noise' from the image but I don't recognize the person. My question is : Do I have to enhance the colors any more or do I need to just guess the identity of the person ...
0 votes
1 answer
876 views

Verdict.bmp: image not clear && no such person seen anywhere in course material

I will be grateful for help on the part of recognizing the person. 1) Am I right assuming that if I have removed red pixels and thus revealed underlying picture, then I am done with the code, even ...
  • 235