fish2.cpp: In function 'void solve(int*, int, int, std::vector<query>)':
fish2.cpp:57:8: warning: statement has no effect [-Wunused-value]
57 | debug("hey\n");
| ~^~~~~~~~
fish2.cpp:100:10: warning: left operand of comma operator has no effect [-Wunused-value]
100 | debug("pop %d, eats %d, surv %d jmp %d\n",stck[sz-1],eats,survives,jmp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fish2.cpp:100:55: warning: right operand of comma operator has no effect [-Wunused-value]
100 | debug("pop %d, eats %d, surv %d jmp %d\n",stck[sz-1],eats,survives,jmp);
| ~~~~~~~~~^
fish2.cpp:100:62: warning: right operand of comma operator has no effect [-Wunused-value]
100 | debug("pop %d, eats %d, surv %d jmp %d\n",stck[sz-1],eats,survives,jmp);
| ^~~~~~~~
fish2.cpp:100:71: warning: right operand of comma operator has no effect [-Wunused-value]
100 | debug("pop %d, eats %d, surv %d jmp %d\n",stck[sz-1],eats,survives,jmp);
| ^~~
fish2.cpp:120:9: warning: left operand of comma operator has no effect [-Wunused-value]
120 | debug("i %d gr_L %d walk_R %d\n\n",i,greater_L[i],lo);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
fish2.cpp:120:51: warning: right operand of comma operator has no effect [-Wunused-value]
120 | debug("i %d gr_L %d walk_R %d\n\n",i,greater_L[i],lo);
| ^
fish2.cpp:120:51: warning: right operand of comma operator has no effect [-Wunused-value]
120 | debug("i %d gr_L %d walk_R %d\n\n",i,greater_L[i],lo);
| ~~~~~~~~~~~^
fish2.cpp:137:10: warning: left operand of comma operator has no effect [-Wunused-value]
137 | debug("query %d: top %d, bad = %d, good = %d\n",q.id,top,first_bad,last_good);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fish2.cpp:137:54: warning: right operand of comma operator has no effect [-Wunused-value]
137 | debug("query %d: top %d, bad = %d, good = %d\n",q.id,top,first_bad,last_good);
| ~~^~
fish2.cpp:137:61: warning: right operand of comma operator has no effect [-Wunused-value]
137 | debug("query %d: top %d, bad = %d, good = %d\n",q.id,top,first_bad,last_good);
| ^~~~~~~~~
fish2.cpp:137:71: warning: right operand of comma operator has no effect [-Wunused-value]
137 | debug("query %d: top %d, bad = %d, good = %d\n",q.id,top,first_bad,last_good);
| ^~~~~~~~~
fish2.cpp: At global scope:
fish2.cpp:146:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
146 | main(){
| ^~~~
fish2.cpp: In function 'int main()':
fish2.cpp:149:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
149 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
fish2.cpp:152:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
152 | scanf("%d",v_ord+i);
| ~~~~~^~~~~~~~~~~~~~
fish2.cpp:158:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
158 | scanf("%d",&q);
| ~~~~~^~~~~~~~~
fish2.cpp:165:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
165 | scanf("%*d%d%d",&l,&r);
| ~~~~~^~~~~~~~~~~~~~~~~