ufo.cpp: In function 'int main()':
ufo.cpp:80:17: sorry, unimplemented: capture of variably-modified type 'int [n][m]' that is not an N3639 array of runtime bound
80 | auto get = [&sp](int i1, int j1, int i2, int j2) -> int {
| ^~
ufo.cpp:80:17: note: because the array element type 'int [m]' has variable size
ufo.cpp: In lambda function:
ufo.cpp:81:15: error: 'sp' is not captured
81 | int A = sp[i2][j2];
| ^~
ufo.cpp:80:19: note: the lambda has no capture-default
80 | auto get = [&sp](int i1, int j1, int i2, int j2) -> int {
| ^
ufo.cpp:69:8: note: 'int sp [n][m]' declared here
69 | int sp[n][m];
| ^~
ufo.cpp:82:19: error: 'sp' is not captured
82 | int B = (i1?sp[i1-1][j2]:0);
| ^~
ufo.cpp:80:19: note: the lambda has no capture-default
80 | auto get = [&sp](int i1, int j1, int i2, int j2) -> int {
| ^
ufo.cpp:69:8: note: 'int sp [n][m]' declared here
69 | int sp[n][m];
| ^~
ufo.cpp:83:19: error: 'sp' is not captured
83 | int C = (j1?sp[i2][j1-1]:0);
| ^~
ufo.cpp:80:19: note: the lambda has no capture-default
80 | auto get = [&sp](int i1, int j1, int i2, int j2) -> int {
| ^
ufo.cpp:69:8: note: 'int sp [n][m]' declared here
69 | int sp[n][m];
| ^~
ufo.cpp:84:23: error: 'sp' is not captured
84 | int D = (i1&&j1?sp[i1-1][j1-1]:0);
| ^~
ufo.cpp:80:19: note: the lambda has no capture-default
80 | auto get = [&sp](int i1, int j1, int i2, int j2) -> int {
| ^
ufo.cpp:69:8: note: 'int sp [n][m]' declared here
69 | int sp[n][m];
| ^~