Problem | lboard |
---|---|
User | electron13 |
Submission Time | 2023-02-16 17:24:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lboard.cpp: In function ‘int main()’:
lboard.cpp:21:10: error: invalid array assignment
21 | r[i] = c;
| ^
lboard.cpp:28:23: error: ‘j’ was not declared in this scope
28 | for(int v = v;v >=0;j--){
| ^
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 |