/in/foo.cc: In function 'int main()':
/in/foo.cc:16:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<=n;++i)
~^~~
/in/foo.cc:18:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<=n;++i){
~^~~
/in/foo.cc:19:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int q=0;q<=cost[i]-1;++q){
~^~~~~~~~~~~
/in/foo.cc:22:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int q=cost[i];q<=money;++q){
~^~~~~~~
/in/foo.cc:30:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<=n;++i)
~^~~
/in/foo.cc:32:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<=n;++i){
~^~~
/in/foo.cc:33:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int q=0;q<=worth[i]-1;++q){
~^~~~~~~~~~~~
/in/foo.cc:36:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int q=worth[i];q<=ans;++q){
~^~~~~