/in/foo.cc: In function 'int main()':
/in/foo.cc:6:33: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
if(s<=n) return printf("%d\n",s),0;for(long long i=1;i<=t;i++) for(long long j=n;j>=c[i];j--) f[j]=max(f[j],f[j-c[i]]+c[i]);
^
/in/foo.cc:6:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(s<=n) return printf("%d\n",s),0;for(long long i=1;i<=t;i++) for(long long j=n;j>=c[i];j--) f[j]=max(f[j],f[j-c[i]]+c[i]);
^~
/in/foo.cc:6:37: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(s<=n) return printf("%d\n",s),0;for(long long i=1;i<=t;i++) for(long long j=n;j>=c[i];j--) f[j]=max(f[j],f[j-c[i]]+c[i]);
^~~