watching.cpp: In lambda function:
watching.cpp:29:17: sorry, unimplemented: capture of variably-modified type 'int [(n + 1)][(p + 1)]' that is not an N3639 array of runtime bound
29 | dp[i][j] = inf;
| ^~
watching.cpp:29:17: note: because the array element type 'int [(p + 1)]' has variable size
watching.cpp:38:28: sorry, unimplemented: capture of variably-modified type 'int [(n + 1)][(p + 1)]' that is not an N3639 array of runtime bound
38 | if (j < p) dp[i][j + 1] = min(dp[i][j + 1], dp[t1][j]);
| ^~
watching.cpp:38:28: note: because the array element type 'int [(p + 1)]' has variable size
watching.cpp:38:47: sorry, unimplemented: capture of variably-modified type 'int [(n + 1)][(p + 1)]' that is not an N3639 array of runtime bound
38 | if (j < p) dp[i][j + 1] = min(dp[i][j + 1], dp[t1][j]);
| ^~
watching.cpp:38:47: note: because the array element type 'int [(p + 1)]' has variable size
watching.cpp:38:61: sorry, unimplemented: capture of variably-modified type 'int [(n + 1)][(p + 1)]' that is not an N3639 array of runtime bound
38 | if (j < p) dp[i][j + 1] = min(dp[i][j + 1], dp[t1][j]);
| ^~
watching.cpp:38:61: note: because the array element type 'int [(p + 1)]' has variable size
watching.cpp:39:17: sorry, unimplemented: capture of variably-modified type 'int [(n + 1)][(p + 1)]' that is not an N3639 array of runtime bound
39 | dp[i][j] = min(dp[i][j], dp[t2][j] + 1);
| ^~
watching.cpp:39:17: note: because the array element type 'int [(p + 1)]' has variable size
watching.cpp:39:32: sorry, unimplemented: capture of variably-modified type 'int [(n + 1)][(p + 1)]' that is not an N3639 array of runtime bound
39 | dp[i][j] = min(dp[i][j], dp[t2][j] + 1);
| ^~
watching.cpp:39:32: note: because the array element type 'int [(p + 1)]' has variable size
watching.cpp:39:42: sorry, unimplemented: capture of variably-modified type 'int [(n + 1)][(p + 1)]' that is not an N3639 array of runtime bound
39 | dp[i][j] = min(dp[i][j], dp[t2][j] + 1);
| ^~
watching.cpp:39:42: note: because the array element type 'int [(p + 1)]' has variable size
watching.cpp:42:16: sorry, unimplemented: capture of variably-modified type 'int [(n + 1)][(p + 1)]' that is not an N3639 array of runtime bound
42 | return dp[n][p] <= q;
| ^~
watching.cpp:42:16: note: because the array element type 'int [(p + 1)]' has variable size