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