Questions tagged [more]

The tag has no usage guidance.

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

Cannot understand why valgrind is giving error although check50 runs properly

In this problem, (filter), I'm receiving all green from check50. But when I ran valgrind for blurring I got the following error: ==4412== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al....
0
votes
0answers
29 views

pset4 filter(more) edges produces incorrect image

my edge detection function produces an incorrect image. I've separated my code into a few functions: edges(), sobel(), colorValue(), and a helper function copyArray(). colorValue() computes the gx or ...
0
votes
0answers
51 views

Help with detecting edges on pset4/filter/more

My program seems to be ok in my brain and on the "outfile.bmp", but when I check50 it all I get is: Here is my code, void edges(int height, int width, RGBTRIPLE image[height][width]) { int gxb, ...
1
vote
2answers
2k views

Pset4 filter edges issue

I'm trying to figure why my code doesn't work for detecting edges. Even though it produces a result, it is too white. Any suggestions? // Detect edges void edges(int height, int width, RGBTRIPLE ...
0
votes
1answer
73 views

Why isn't resize(more) printing properly?

I am back again with another question about resize more. I feel like I am pretty close, but for some reason it is not resizing vertically properly when the factor is larger than 0 (I haven't dabbled ...
0
votes
1answer
60 views

Random Black Pixels on Resize More

I am currently working on Pset3 Resize More. This is something I have never really done before, and I am really not sure if I am missing something major or not. Right now, I know that I can't shrink ...
1
vote
1answer
105 views

pset6 (Similarities, more)

Does anyone know what this lines of code stand for ? _, operation = matrix[i][j] Specifically I am interested in a dash before the comma. Thank you in advance.
1
vote
0answers
158 views

PSET6: Similarities: More: General Advice

Just looking for some general advice for pset6 similarities more. I went for more (rather than less) as I have had some experience with python and dynamic programming prior to CS50. However I have ...
0
votes
1answer
46 views

Unexpected behavior when dealing with edit distances

One more doubt has arised, as I get closer to the end of this course. Doing the less complicated version of Similarities was trivial to me; however, I am going through some issues with the outcomes of ...
0
votes
1answer
269 views

PSET6 Similarities (More) 500 Internal Server Error

While performing testing of my web application, upon submitting the form and going to /score, none of the actual webpage is displayed, only the text: Internal Server Error The server encountered an ...
0
votes
1answer
185 views

pset6 similarites more distances wrong operations

Problem I am experiencing: I have figured out an algorithm for distances to calculate the edit distance between two strings. The costs in the tuples are correct, but the conditions are not properly ...
0
votes
2answers
139 views

pset6/similarities more: what is the purpose of enumeration in the Operation class?

Currently tackling pset6 similarities more, and I'm trying to figure out what the purpose of enumeration is for in the Operation class. Here is the code taken from the helpers.py file: class ...
0
votes
1answer
110 views

pset6/similarities more: if edit distance algorithm returns more than 1 cost with same value, which operation takes priority?

I'm working on pset6 similarities (more) and have a question about the edit distance algorithm. If the edit distance algorithm returns more than one cost with the same value, which operation takes ...
0
votes
1answer
187 views

Pset6 Sentimental Mario (more) check50 fails with correct output

My python code works correctly, outputting the appropriate number of spaces and #s to the terminal window, but it fails check50 for one test: :( rejects a height of 24, and then accepts a height of 2 ...
0
votes
1answer
539 views

pset 1 credit.c

I started with the credit card case but I am lost I wrote this till now I want some help to know what to do next of course not giving the whole thing because this is the purpose of the course... ...
0
votes
1answer
104 views

Pset 2 initials output correct - check50 displays error

I have encountered some problems with pset2 initials more comfortable. The output I get is correct, but check50 shows some error.Can`t find problem. Maybe someone has some hints what is wrong here? #...
0
votes
1answer
94 views

Pset 3: Find (more comfortable) - child exited with status 255 & exits with wrong code

I ambitiously decided to try the more comfortable version of this task, although I'm very much "less comfortable" with regard to any computer skills... Before I give up, I'd like to ask you what's ...
0
votes
1answer
514 views

pset3 find more comfortable

i had written the C code for sort and search it is not working yet my code for helper.c is /** * helpers.c * * Helper functions for Problem Set 3. */ #include <cs50.h> #include "helpers.h"...
0
votes
1answer
455 views

pset2 initials.c more comfortable

I had written the code like this but I am getting the gap between the two characters of output. How to remove this spaces. #include <stdio.h> #include <cs50.h> #include <string.h> ...
1
vote
1answer
870 views

Choosing pixels in resize (More)

I figured that in order to resize an image using a float for the scale factor I could pick the pixels to copy from the source image's scanlines as follows: For example, if the source image is 3px ...