/in/foo.cc: In function 'int work(int, int)':
/in/foo.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:16:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (i=1;i<=n;i++) if (t[i]>=s) break;work(i-1,s-t[i-1]);
^~~
/in/foo.cc:16:46: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for (i=1;i<=n;i++) if (t[i]>=s) break;work(i-1,s-t[i-1]);
^~~~