/in/foo.cc: In function 'int main()':
/in/foo.cc:26:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int j=v[i];j<=P;j++)
^~~
/in/foo.cc:30:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
printf("%d",(f[0]==-INF) ? -1 : f[0]);
^~~~~~
/in/foo.cc:22:11: warning: iteration 1003000 invokes undefined behavior [-Waggressive-loop-optimizations]
f[i]=-INF;
~~~~^~~~~
/in/foo.cc:21:18: note: within this loop
for(int i=0;i<=CON*1000;i++)
~^~~~~~~~~~