fish2.cpp: In function 'void solve(int*, int, int, std::vector<query>)':
fish2.cpp:54:8: warning: statement has no effect [-Wunused-value]
54 | debug("hey\n");
| ~^~~~~~~~
fish2.cpp:97:10: warning: left operand of comma operator has no effect [-Wunused-value]
97 | debug("pop %d, eats %d, surv %d jmp %d\n",stck[sz-1],eats,survives,jmp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fish2.cpp:97:55: warning: right operand of comma operator has no effect [-Wunused-value]
97 | debug("pop %d, eats %d, surv %d jmp %d\n",stck[sz-1],eats,survives,jmp);
| ~~~~~~~~~^
fish2.cpp:97:62: warning: right operand of comma operator has no effect [-Wunused-value]
97 | debug("pop %d, eats %d, surv %d jmp %d\n",stck[sz-1],eats,survives,jmp);
| ^~~~~~~~
fish2.cpp:97:71: warning: right operand of comma operator has no effect [-Wunused-value]
97 | debug("pop %d, eats %d, surv %d jmp %d\n",stck[sz-1],eats,survives,jmp);
| ^~~
fish2.cpp:117:9: warning: left operand of comma operator has no effect [-Wunused-value]
117 | debug("i %d gr_L %d walk_R %d\n\n",i,greater_L[i],lo);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
fish2.cpp:117:51: warning: right operand of comma operator has no effect [-Wunused-value]
117 | debug("i %d gr_L %d walk_R %d\n\n",i,greater_L[i],lo);
| ^
fish2.cpp:117:51: warning: right operand of comma operator has no effect [-Wunused-value]
117 | debug("i %d gr_L %d walk_R %d\n\n",i,greater_L[i],lo);
| ~~~~~~~~~~~^
fish2.cpp: In function 'int main()':
fish2.cpp:151:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
151 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
fish2.cpp:154:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
154 | scanf("%d",v_ord+i);
| ~~~~~^~~~~~~~~~~~~~
fish2.cpp:160:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
160 | scanf("%d",&q);
| ~~~~~^~~~~~~~~
fish2.cpp:168:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
168 | scanf("%d%d%d",&ty,&l,&r);
| ~~~~~^~~~~~~~~~~~~~~~~~~~