/in/foo.cc: In function 'int main()':
/in/foo.cc:14:28: error: 'memset' was not declared in this scope
memset(f,-127/2,sizeof(f));;
^
/in/foo.cc:19:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(k*c[i]<=j)
^
/in/foo.cc:29:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int j=m-1;j>0;j--)
^~~
/in/foo.cc:31:11: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
cout<<f[n][k]<<endl;
^~~~
/in/foo.cc:38:21: warning: operation on 'l' may be undefined [-Wsequence-point]
a[--l]=d[--l][k];
^~~