hottercolder.cpp:6: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
6 | #pragma GCC optimization ("O3")
|
hottercolder.cpp:7: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
7 | #pragma GCC optimization ("unroll-loops")
|
hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:42:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
42 | l=(l+r)>>1+1;
| ~^~
hottercolder.cpp:45:17: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
45 | r=(l+r)>>1-1;
| ~^~
hottercolder.cpp:36:10: warning: unused variable 'h' [-Wunused-variable]
36 | int h=Guess(l);
| ^
hottercolder.cpp: In function 'void setIO(std::string)':
hottercolder.cpp:29:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
29 | freopen((s+".in").c_str(),"r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hottercolder.cpp:30:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
30 | freopen((s+".out").c_str(),"w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~