robots.cpp:23:39: warning: bad option '-fwhole-program' to pragma 'optimize' [-Wpragmas]
23 | #pragma GCC optimize("-fwhole-program")
| ^
robots.cpp:30:41: warning: bad option '-fstrict-overflow' to pragma 'optimize' [-Wpragmas]
30 | #pragma GCC optimize("-fstrict-overflow")
| ^
robots.cpp:32:41: warning: bad option '-fcse-skip-blocks' to pragma 'optimize' [-Wpragmas]
32 | #pragma GCC optimize("-fcse-skip-blocks")
| ^
robots.cpp:46:51: warning: bad option '-funsafe-loop-optimizations' to pragma 'optimize' [-Wpragmas]
46 | #pragma GCC optimize("-funsafe-loop-optimizations")
| ^
robots.cpp:63:37: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
63 | bool check(int t,int A, int B, int T)
| ^
robots.cpp:63:37: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
robots.cpp:63:37: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
robots.cpp:63:37: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
robots.cpp: In function 'bool check(int, int, int, int)':
robots.cpp:72:24: warning: comparison of integer expressions of different signedness: 'std::priority_queue<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
72 | while(now<=T&&d.size()<=B*t)d.push(s[now++].sn);
| ~~~~~~~~^~~~~
robots.cpp:73:13: warning: comparison of integer expressions of different signedness: 'std::priority_queue<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
73 | if(d.size()>B*t)return false;
| ~~~~~~~~^~~~
robots.cpp: At global scope:
robots.cpp:79:68: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
79 | int putaway(int A, int B, int T, int X[], int Y[], int W[], int S[]) {
| ^
robots.cpp:79:68: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
robots.cpp:79:68: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
robots.cpp:79:68: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
robots.cpp: In function 'int putaway(int, int, int, int*, int*, int*, int*)':
robots.cpp:94:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
94 | int mid=l+r>>1;
| ~^~