Problem lboard
User electron13
Submission Time 2023-02-17 15:25:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lboard.cpp: In function ‘int main()’:
lboard.cpp:21:10: error: invalid array assignment
21 | r[i] = c;
| ^
lboard.cpp:33:11: sorry, unimplemented: capture of variably-modified type ‘int [n][m]’ that is not an N3639 array of runtime bound
33 | arr = [r[v-1][u-1],r[v-1][u],r[v-1][u+1],r[v][u-1],r[v][u],r[v][u+1],r[v-1][u-1],r[v-1][u],r[v-1][u+1]];
| ^
lboard.cpp:33:11: note: because the array element type ‘int [m]’ has variable size
lboard.cpp:33:12: error: expected ‘,’ before ‘[’ token
33 | arr = [r[v-1][u-1],r[v-1][u],r[v-1][u+1],r[v][u-1],r[v][u],r[v][u+1],r[v-1][u-1],r[v-1][u],r[v-1][u+1]];
| ^
| ,
lboard.cpp:33:12: error: expected identifier before ‘[’ token
lboard.cpp:33:22: error: expected ‘]’ before ‘,’ token
33 | arr = [r[v-1][u-1],r[v-1][u],r[v-1][u+1],r[v][u-1],r[v][u],r[v][u+1],r[v-1][u-1],r[v-1][u],r[v-1][u+1]];
| ^