Questions tagged [morecomfortable]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
36 views

Help with pset4 filter edge detection function

I have some problems with the edges function. The code compiles fine and all but the result looks like this: https://imgur.com/a/S2MQLom The edges of the image and one third of it don't look as ...
0
votes
2answers
27 views

mario more comfortable; “can't check until a frown turns upside down”

[EDIT: Code removed for Honor Code compliance.] The code seems to be running perfectly fine and gives the correct output But every time i try to check it, i get this: :) mario.c exists :( mario.c ...
0
votes
0answers
21 views

pset3 resize more comfortable stuck for scaling down

Been spending a few days tackling scaling down the image. Below is my code. Can anyone help point me towards the right direction or find errors in my code? // Copies a BMP file #include <stdio.h&...
0
votes
1answer
69 views

PSET3 Resize (more comfortable), resizing f > 1 correctly, but pixels are different colors. Does not work when f < 1

**Relevant code is after comment: // iterate over infile's scanlines This code is able to make a new larger bmp with the correct dimensions, but the pixels are not the same color as the original bmp. ...
2
votes
2answers
2k views

PSET1:: Mario More Comfortable :: confused about check50 output

I am sorry if I miss something obvious here, but I am an absolute beginner. I get the following output from check50, which I am confused about: I will attach my code below, but my output for 2 is: ...
0
votes
1answer
32 views

PSET4: Scale factor between 0 and 1

I am currently working on resize (more comfortable). my code works with check50 for all scale factors greater than and equal to one (meaning to say it will get a perfect on resize less comfortable). ...
0
votes
1answer
44 views

PSET 4: scale factor between 0 and 1???

I am currently working on resize (more comfortable). my code works with check50 for all scale factors greater than and equal to one (meaning to say it will get a perfect on resize less comfortable). ...
0
votes
2answers
195 views

Similarities (More) sometimes fails but works in most cases

For some reason, for some combinations of strings, I receive an IndexError on the compilation of Operations in application.py. However, for most cases, the table renders properly, and in every case, ...
0
votes
1answer
104 views

Any help with initials(more comfortable) in pset2 is greatly appreciated

Please help me with some advice on completing this problem. I can print out the first letter of someone's first name, but I do not know how to go about printing out the first letter in someone's ...
0
votes
1answer
348 views

pset3/find check50 frown helpers.c compiles. expected exit code 0, not 1

When checking my find program with check50 I get a :( frown at the second check, which is: helpers.c compiles. expected exit code 0, not 1 The log file gives me additional info: running clang -...
0
votes
1answer
284 views

Mario check50 timeout

I have a timeout problem when I'm checking the more comfortable version of mario app. When I'm running it by myself it works fine, but check50 returns time out in some cases, for example:" :( rejects ...
0
votes
1answer
53 views

expected output, but not “MB\n”

check50_more report : :) initials.c exists :) initials.c compiles :) outputs "MB" for "Milo Banana" :) outputs "MB" for "milo banana" :( outputs "MB" for " milo banana " \ expected output, but ...
0
votes
1answer
427 views

pset1 more comfortable mario seemingly correct output

int main(void) { int original_height, var_height; // original height and variable height int row_position; do { printf("height: "); original_height = GetInt(); /...
0
votes
2answers
1k views

any idea how to fix Mario more comfortable problem “expected output”

when I executed i have this error :) mario.c exists :) mario.c compiles :) rejects a height of -1 :) handles a height of 0 correctly :) handles a height of 1 correctly *:( handles a height of 2 ...
0
votes
1answer
96 views

am on pset2(morecomfortable), the code gives me the desired result but it doesnt pass the check

#include <cs50.h> #include <stdio.h> #include <string.h> #include <ctype.h> int main(void) { string name = GetString(); for (int i = 0, n = strlen(name); i < n; i++)...
0
votes
1answer
23 views

PSET2 more comfortable - how do I optimize my correct code

As the title says, I have been able to solve PSET2 More Comfortable version but I feel the way I have written my code is not optimized or is rather 'low level' or 'crude'. I see many solutions that ...