foo.cc: In function 'int main(int, char**)':
foo.cc:83:25: error: 'm' was not declared in this scope
83 | for (int j=1;j<=m;j++)
| ^
foo.cc:85:50: error: invalid types 'i64 {aka long int}[int]' for array subscript
85 | f[i][j]=max(f[i][j],f[i-k][j-1]+g[i-k+1][i]);
| ^
foo.cc:82:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
82 | for (int i=1;i<=n;i++)
| ^~~
foo.cc:87:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
87 | printf("%ld\n", f[n][g]);
| ^~~~~~
[Hydro](https://hydro.ac)提供评测服务