/in/foo.cc: In function 'int main()':
/in/foo.cc:13:27: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d%d",&c[i],&w[i]);
^
/in/foo.cc:13:27: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:14:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<=n;i++)
^~~
/in/foo.cc:22:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
printf("%d\n",f[n][V]);
^~~~~~
/in/foo.cc:22:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d\n",f[n][V]);
^