koala.cpp: In function 'void update(int, int, int, int, int)':
koala.cpp:36:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
36 | int mid = l + r >> 1;
| ~~^~~
koala.cpp: In function 'long long int get(int, int, int, int, int)':
koala.cpp:45:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
45 | int mid = l + r >> 1;
| ~~^~~
koala.cpp: In function 'int main()':
koala.cpp:16:58: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | #define file(name) if (fopen(name".inp", "r")) { freopen(name".inp", "r", stdin); freopen(name".out", "w", stdout); freopen(name".bug", "w", stderr); }
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
koala.cpp:73:5: note: in expansion of macro 'file'
73 | file(task);
| ^~~~
koala.cpp:16:91: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | #define file(name) if (fopen(name".inp", "r")) { freopen(name".inp", "r", stdin); freopen(name".out", "w", stdout); freopen(name".bug", "w", stderr); }
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
koala.cpp:73:5: note: in expansion of macro 'file'
73 | file(task);
| ^~~~
koala.cpp:16:125: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | #define file(name) if (fopen(name".inp", "r")) { freopen(name".inp", "r", stdin); freopen(name".out", "w", stdout); freopen(name".bug", "w", stderr); }
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
koala.cpp:73:5: note: in expansion of macro 'file'
73 | file(task);
| ^~~~
koala.cpp:16:58: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | #define file(name) if (fopen(name".inp", "r")) { freopen(name".inp", "r", stdin); freopen(name".out", "w", stdout); freopen(name".bug", "w", stderr); }
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
koala.cpp:74:5: note: in expansion of macro 'file'
74 | file(tsk);
| ^~~~
koala.cpp:16:91: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | #define file(name) if (fopen(name".inp", "r")) { freopen(name".inp", "r", stdin); freopen(name".out", "w", stdout); freopen(name".bug", "w", stderr); }
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
koala.cpp:74:5: note: in expansion of macro 'file'
74 | file(tsk);
| ^~~~
koala.cpp:16:125: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | #define file(name) if (fopen(name".inp", "r")) { freopen(name".inp", "r", stdin); freopen(name".out", "w", stdout); freopen(name".bug", "w", stderr); }
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
koala.cpp:74:5: note: in expansion of macro 'file'
74 | file(tsk);
| ^~~~