artclass.cpp:15:42: error: 'g' has not been declared
15 | int style(int R, int C, int r[500][500], g[500][500], b[500][500]) {
| ^
artclass.cpp:15:55: error: 'b' has not been declared
15 | int style(int R, int C, int r[500][500], g[500][500], b[500][500]) {
| ^
artclass.cpp: In function 'int style(int, int, int (*)[500], int (*)[500], int (*)[500])':
artclass.cpp:19:46: error: 'g' was not declared in this scope
19 | dt[i][j] = ((r[i-1][j-1] << 8) + g[i-1][j-1]) << 8 + b[i-1][j-1];
| ^
artclass.cpp:19:66: error: 'b' was not declared in this scope
19 | dt[i][j] = ((r[i-1][j-1] << 8) + g[i-1][j-1]) << 8 + b[i-1][j-1];
| ^