/in/foo.cc: In function 'long long unsigned int dp(int, int, int)':
/in/foo.cc:6:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (f[L][R]!=-1) return f[L][R];
~~~~~~~^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:13:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long unsigned int*' [-Wformat=]
scanf("%d%d",&n,&m);
~~ ^
/in/foo.cc:13:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long unsigned int*' [-Wformat=]
/in/foo.cc:15:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=1;i<=m;i++)
~^~~
/in/foo.cc:18:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=1;i<=n;i++)
~^~~
/in/foo.cc:20:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j=1;j<=m;j++)
~^~~
/in/foo.cc:21:22: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long unsigned int*' [-Wformat=]
scanf("%d",&num[j]);
~~~~~~~^