check50

cs50/problems/2022/x/filter/more


:) helpers.c exists

Log
checking that helpers.c exists...

:( filter compiles

Cause
code failed to compile

Log
running clang testing.c helpers.c -o testing -std=c11 -ggdb -lm...
testing.c:245:17: warning: implicit declaration of function 'edges' is invalid in C99 [-Wimplicit-function-declaration]
edges(3, 3, img4);
^
testing.c:252:17: warning: implicit declaration of function 'edges' is invalid in C99 [-Wimplicit-function-declaration]
edges(3, 3, img4);
^
testing.c:259:17: warning: implicit declaration of function 'edges' is invalid in C99 [-Wimplicit-function-declaration]
edges(3, 3, img4);
^
testing.c:266:17: warning: implicit declaration of function 'edges' is invalid in C99 [-Wimplicit-function-declaration]
edges(3, 3, img4);
^
testing.c:273:17: warning: implicit declaration of function 'edges' is invalid in C99 [-Wimplicit-function-declaration]
edges(4, 4, img5);
^
5 warnings generated.
helpers.c:10:29: warning: implicit declaration of function 'grayValue' is invalid in C99 [-Wimplicit-function-declaration]
BYTE rgbtGray = grayValue(image[h][w]);
^
helpers.c:19:6: error: conflicting types for 'grayValue'
BYTE grayValue(RGBTRIPLE triple)
^
helpers.c:10:29: note: previous implicit declaration is here
BYTE rgbtGray = grayValue(image[h][w]);
^
helpers.c:83:17: error: use of undeclared identifier 'offsets'
offsets[idx].row = r;
^
helpers.c:84:17: error: use of undeclared identifier 'offsets'
offsets[idx].col = c;
^
helpers.c:96:29: error: use of undeclared identifier 'offsets'
blue += initial[h + offsets[idx].row][w + offsets[idx].col].rgbtBlue;
^
helpers.c:96:51: error: use of undeclared identifier 'offsets'
blue += initial[h + offsets[idx].row][w + offsets[idx].col].rgbtBlue;
^
helpers.c:97:28: error: use of undeclared identifier 'offsets'
red += initial[h + offsets[idx].row][w + offsets[idx].col].rgbtRed;
^
helpers.c:97:50: error: use of undeclared identifier 'offsets'
red += initial[h + offsets[idx].row][w + offsets[idx].col].rgbtRed;
^
helpers.c:98:30: error: use of undeclared identifier 'offsets'
green += initial[h + offsets[idx].row][w + offsets[idx].col].rgbtGreen;
^
helpers.c:98:52: error: use of undeclared identifier 'offsets'
green += initial[h + offsets[idx].row][w + offsets[idx].col].rgbtGreen;
^
3 warnings and 12 errors generated.

:| grayscale correctly filters single pixel with whole number average

Cause
can't check until a frown turns upside down

:| grayscale correctly filters single pixel without whole number average

Cause
can't check until a frown turns upside down

:| grayscale leaves alone pixels that are already gray

Cause
can't check until a frown turns upside down

:| grayscale correctly filters simple 3x3 image

Cause
can't check until a frown turns upside down

:| grayscale correctly filters more complex 3x3 image

Cause
can't check until a frown turns upside down

:| grayscale correctly filters 4x4 image

Cause
can't check until a frown turns upside down

:| reflect correctly filters 1x2 image

Cause
can't check until a frown turns upside down

:| reflect correctly filters 1x3 image

Cause
can't check until a frown turns upside down

:| reflect correctly filters image that is its own mirror image

Cause
can't check until a frown turns upside down

:| reflect correctly filters 3x3 image

Cause
can't check until a frown turns upside down

:| reflect correctly filters 4x4 image

Cause
can't check until a frown turns upside down

:| blur correctly filters middle pixel

Cause
can't check until a frown turns upside down

:| blur correctly filters pixel on edge

Cause
can't check until a frown turns upside down

:| blur correctly filters pixel in corner

Cause
can't check until a frown turns upside down

:| blur correctly filters 3x3 image

Cause
can't check until a frown turns upside down

:| blur correctly filters 4x4 image

Cause
can't check until a frown turns upside down

:| edges correctly filters middle pixel

Cause
can't check until a frown turns upside down

:| edges correctly filters pixel on edge

Cause
can't check until a frown turns upside down

:| edges correctly filters pixel in corner

Cause
can't check until a frown turns upside down

:| edges correctly filters 3x3 image

Cause
can't check until a frown turns upside down

:| edges correctly filters 4x4 image

Cause
can't check until a frown turns upside down