Questions tagged [lesscomfortable]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
146 views

Built mario's pyramid but can't get pass the check50

I've been struggling for days trying to get my mario pyramids to pass the check but I can't seem to get it to work. // I will be declaring my variables here int Height; int space; int dash; // I'm ...
0
votes
2answers
158 views

pset 2 initials (less); “expected prompt for input, not output of…”

I've implemented the code for pset 2 initials (less) and it seems to be working, however, when I test it I get an error I'm struggling to understand. Any help would be greatly appreciated. Below is ...
0
votes
1answer
294 views

MarioLess - declaration shadows a local variable error

Any suggestions on how to fix this error? "mario.c:10:14: error: declaration shadows a local variable" Code sample below. Thanks in advance! #include <cs50.h> #include <stdio.h> int ...
0
votes
1answer
20 views

Pset4 less comfortable compile error

When I try to compile my helpers.c file the compiler shows me clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wshadow helpers.c -...
0
votes
1answer
73 views

pset3 Resize - Invalid or unsupported Image Format

So i think i finished resizing horizontally but when i try to open the output image to check i get an error saying "Invalid or unsupported Image Format", I read other similar questions here and i ...
0
votes
2answers
479 views

pset4 speller all words are misspelled

I realize that many people have asked this question before but I didn't find my answer in any of them. Or maybe I'm just too stupid to see it. Anyways my code seems to work except that all the words ...
0
votes
1answer
232 views

cs50 mario less comfortable eof error

new to coding and working on my pset1. Program works great, but I get this EOF error. Thoughts? Here's my code #include <stdio.h> #include <cs50.h> int main(void) { // declares the ...
0
votes
1answer
103 views

Multiple errors on pset4 resize, less comfortable

I have multiple errors when using check50 and I am not sure why. I realize that multiple people already addressed similar error as mine, but I do not understand the explanations. I would appreciate if ...
0
votes
1answer
165 views

Pset 4: Resize (Less) Hint needed

Please could somebody give me a hint on my code for the Pset4 resize less comfortable. It seems to resize the image horizontally but Im having trouble making the vertical resizing. Im getting garbled ...
0
votes
1answer
223 views

CS50 : pset4 resize(less comfortable)

I have worked on the code for 6 hour and finally on checking manually these codes are working fine. I have tried both small and large bmp from 1 to 6. It worked. But same is not working in check50. ...
0
votes
1answer
49 views

I can't seem to figure out what is wrong with my code. Please help!

I have reached a standstill :( Someone please help. Any and all help/feedback is appreciated! https://gist.github.com/noilddude/92cc9818ada70e169e99f1f1930c909a
0
votes
1answer
654 views

pset3 find less comfortable helpers.c didn't found the needle!

bool search(int value, int values[], int n) { int left = 0, right = n - 1; // TODO: implement a searching algorithm while (n > 0) { int middle = (left + right) / 2; if (value == middle) ...
0
votes
1answer
444 views

PSET4 Resize (Less)

I am having some trouble with the resize assignment. I've written the following code, when I execute it the output file does show increased size, however the colors are completely scattered (also non-...
0
votes
1answer
35 views

I need a little help with resize less comfortable (Please!) - There's a bug in my program

Okay hi! So everything looks good, it's able to resize horizontally & vertically. For instance, when i set n as 4, the 3x3 pixel will be enlarged to However, when i set n to (2 or 3), the ...
0
votes
1answer
120 views

Pset 1 Less comfortable - Number of Hashes

Sorry for the beginners's question. When I try to compile to following code for the Mario - Less Comfortable problem, I am printing the same number of hashes for each row and am unsure why. Code is ...
0
votes
1answer
81 views

cs50 - I can not clear check pset1 Mario less cause “…required files…”. I'm in the right directory.

The check50 is returning I have not created the file, which I see has been a problem others experienced, but all the solutions offered are to get into the correct directory. I am in the correct ...
0
votes
1answer
73 views

Resize.c (less) writing excess padding

I'm on Pset4's Resize (less comfortable), using the recopy method. When I plug in small.bmp and resize it with a scale factor of 2, I get a black block in the middle. With any higher scale factors, it ...
0
votes
1answer
74 views

Pset4 resize (less) Invalid file format

This pset has been super hard for me. I am trying to resize horizontally before I tackle vertical and I am able to compile and run the program but when I go to open the output file I get the error ...
0
votes
1answer
75 views

For resize I don't know what is wrong with the code.. Why is fseek needed?

#include <stdio.h> #include <stdlib.h> #include <cs50.h> #include "bmp.h" int main(int argc, char *argv[]) { // ensure proper usage if (argc != 4) { fprintf(...
0
votes
1answer
30 views

When I enter input that is integer more than 23, the program stops. I think it is supposed continue prompting in this case. What's wrong?

#include <stdio.h> #include <cs50.h> int main(void) { int n; do { n = get_int("Height: "); } while (n<=0 || n>23); }
0
votes
1answer
49 views

Check50 for find-less in ps3 shows me a './sort' error

I implemented the helpers for sort and search. Using basic implementations of quicksort and binarysearch. When I ran check50 cs50/2017/x/find/less there was a weird error for the sorting part: :) ...
0
votes
1answer
38 views

Need Help writing code in loops

the loops got me confused and i need some help so far this is what i've done http://i.imgur.com/9hmUBsw.png