Questions tagged [lesscomfortable]
The lesscomfortable tag has no usage guidance.
25
questions
0
votes
1
answer
42
views
pset 1 mario less comfortable
I don't know how to put the dots. In walkthrough we are told come with formula but I don't know how to come up with formula. I have no idea what to do.
}
0
votes
1
answer
320
views
PS4 Recover Segmentation Fault (Core Dumped)
Hope you got into the new year well and healthy!
I get a segmentation fault (core dumped) if I want to run ./recover card.raw
Anyone got any tips because I have checked it 100 times already. Valgrind ...
1
vote
1
answer
42
views
CS50 Pset4 Sepia
I have been working on PSET4 and understood the code and the tasks fine. But my compilation does not change the image and I cannot figure out why it will not work for the life of me. I have checked ...
0
votes
1
answer
58
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
1
answer
36
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
1
answer
79
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
1
answer
516
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
2
answers
564
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
1
answer
172
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
1
answer
241
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
1
answer
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
1
answer
161
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
1
answer
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
1
answer
80
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
1
answer
78
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
1
answer
34
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
1
answer
51
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
1
answer
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
2
answers
265
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
1
answer
224
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
1
answer
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
1
answer
666
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
1
answer
39
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
0
votes
1
answer
446
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-...
1
vote
1
answer
151
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 ...