prog.cpp:27: warning: missing braces around initializer for ‘COLOR [240]’
prog.cpp:27: warning: missing braces around initializer for ‘COLOR’
prog.cpp: In function ‘int main()’:
prog.cpp:117: error: request for member ‘r’ in ‘graydata[0][j]’, which is of non-class type ‘unsigned char’
prog.cpp:119: error: request for member ‘g’ in ‘graydata[0][j]’, which is of non-class type ‘unsigned char’
prog.cpp:121: error: request for member ‘b’ in ‘graydata[0][j]’, which is of non-class type ‘unsigned char’
prog.cpp:127: error: request for member ‘r’ in ‘graydata[i][0]’, which is of non-class type ‘unsigned char’
prog.cpp:129: error: request for member ‘g’ in ‘graydata[i][0]’, which is of non-class type ‘unsigned char’
prog.cpp:131: error: request for member ‘b’ in ‘graydata[i][0]’, which is of non-class type ‘unsigned char’
prog.cpp:141: error: request for member ‘r’ in ‘graydata[((i + ii) + -0x000000001)][((j + jj) + -0x000000001)]’, which is of non-class type ‘unsigned char’
prog.cpp:143: error: request for member ‘g’ in ‘graydata[((i + ii) + -0x000000001)][((j + jj) + -0x000000001)]’, which is of non-class type ‘unsigned char’
prog.cpp:145: error: request for member ‘b’ in ‘graydata[((i + ii) + -0x000000001)][((j + jj) + -0x000000001)]’, which is of non-class type ‘unsigned char’
prog.cpp:175: error: request for member ‘r’ in ‘graydata[i][239]’, which is of non-class type ‘unsigned char’
prog.cpp:177: error: request for member ‘g’ in ‘graydata[i][239]’, which is of non-class type ‘unsigned char’
prog.cpp:179: error: request for member ‘b’ in ‘graydata[i][239]’, which is of non-class type ‘unsigned char’
prog.cpp:185: error: request for member ‘r’ in ‘graydata[319][j]’, which is of non-class type ‘unsigned char’
prog.cpp:187: error: request for member ‘g’ in ‘graydata[319][j]’, which is of non-class type ‘unsigned char’
prog.cpp:189: error: request for member ‘b’ in ‘graydata[319][j]’, which is of non-class type ‘unsigned char’
prog.cpp:75: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
prog.cpp:195: warning: ignoring return value of ‘size_t fwrite(const void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result