Main.cpp: In function 'void init(int, int, int)':
Main.cpp:23:9: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
23 | int m=s+e>>1;
| ~^~
Main.cpp: In function 'void upd(int, int, int, int, int, int)':
Main.cpp:50:9: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
50 | int m=s+e>>1;
| ~^~
Main.cpp: In function 'int main()':
Main.cpp:58:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
58 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
Main.cpp:60:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
60 | scanf(" %c", &ch);
| ~~~~~^~~~~~~~~~~~
Main.cpp:66:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
66 | scanf(" %c", &ch);
| ~~~~~^~~~~~~~~~~~
Main.cpp:72:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
72 | scanf(" %c", &ch);
| ~~~~~^~~~~~~~~~~~
Main.cpp:83:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
83 | scanf("%d", &Q);
| ~~~~~^~~~~~~~~~
Main.cpp:85:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
85 | scanf(" %c", &ch);
| ~~~~~^~~~~~~~~~~~
Main.cpp:97:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
97 | scanf("%d %d %c", &l, &r, &ch);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:96:13: warning: 'v' may be used uninitialized in this function [-Wmaybe-uninitialized]
96 | int l, r, v;
| ^