fish2.cpp: In function 'void solve(int*, int, int, std::vector<query>)':
fish2.cpp:63:8: warning: statement has no effect [-Wunused-value]
63 | debug("hey\n");
| ~^~~~~~~~
fish2.cpp:106:10: warning: left operand of comma operator has no effect [-Wunused-value]
106 | debug("pop %d, eats %d, surv %d jmp %d\n",stck[sz-1],eats,survives,jmp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fish2.cpp:106:55: warning: right operand of comma operator has no effect [-Wunused-value]
106 | debug("pop %d, eats %d, surv %d jmp %d\n",stck[sz-1],eats,survives,jmp);
| ~~~~~~~~~^
fish2.cpp:106:62: warning: right operand of comma operator has no effect [-Wunused-value]
106 | debug("pop %d, eats %d, surv %d jmp %d\n",stck[sz-1],eats,survives,jmp);
| ^~~~~~~~
fish2.cpp:106:71: warning: right operand of comma operator has no effect [-Wunused-value]
106 | debug("pop %d, eats %d, surv %d jmp %d\n",stck[sz-1],eats,survives,jmp);
| ^~~
fish2.cpp:126:9: warning: left operand of comma operator has no effect [-Wunused-value]
126 | debug("i %d gr_L %d walk_R %d\n\n",i,greater_L[i],lo);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
fish2.cpp:126:51: warning: right operand of comma operator has no effect [-Wunused-value]
126 | debug("i %d gr_L %d walk_R %d\n\n",i,greater_L[i],lo);
| ^
fish2.cpp:126:51: warning: right operand of comma operator has no effect [-Wunused-value]
126 | debug("i %d gr_L %d walk_R %d\n\n",i,greater_L[i],lo);
| ~~~~~~~~~~~^
fish2.cpp:143:10: warning: left operand of comma operator has no effect [-Wunused-value]
143 | debug("query %d: top %d, bad = %d, good = %d\n",q.id,top,first_bad,last_good);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fish2.cpp:143:54: warning: right operand of comma operator has no effect [-Wunused-value]
143 | debug("query %d: top %d, bad = %d, good = %d\n",q.id,top,first_bad,last_good);
| ~~^~
fish2.cpp:143:61: warning: right operand of comma operator has no effect [-Wunused-value]
143 | debug("query %d: top %d, bad = %d, good = %d\n",q.id,top,first_bad,last_good);
| ^~~~~~~~~
fish2.cpp:143:71: warning: right operand of comma operator has no effect [-Wunused-value]
143 | debug("query %d: top %d, bad = %d, good = %d\n",q.id,top,first_bad,last_good);
| ^~~~~~~~~
fish2.cpp: In function 'int main()':
fish2.cpp:156:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
156 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
fish2.cpp:159:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
159 | scanf("%d",v_ord+i);
| ~~~~~^~~~~~~~~~~~~~
fish2.cpp:165:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
165 | scanf("%d",&q);
| ~~~~~^~~~~~~~~
fish2.cpp:173:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
173 | scanf("%d%d%d",&ty,&l,&r);
| ~~~~~^~~~~~~~~~~~~~~~~~~~