collecting.cpp: In function 'int main()':
collecting.cpp:8:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
8 | #define rep(i, n) for(int (i)=0; (i)<(int)(n); (i)++)
| ^
collecting.cpp:58:5: note: in expansion of macro 'rep'
58 | rep(i, 2) st[i].init(1<<N, [](int a, int b){ return a+b; }, 0);
| ^~~
collecting.cpp:8:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
8 | #define rep(i, n) for(int (i)=0; (i)<(int)(n); (i)++)
| ^
collecting.cpp:64:5: note: in expansion of macro 'rep'
64 | rep(i, 2) cnt[i][N] = 1;
| ^~~
collecting.cpp:8:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
8 | #define rep(i, n) for(int (i)=0; (i)<(int)(n); (i)++)
| ^
collecting.cpp:66:2: note: in expansion of macro 'rep'
66 | rep(i, Q){
| ^~~
collecting.cpp:74:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
74 | while(r-l <= (1<<N) && st[T].query(l, r) == 0 || st[T].query(l, r) == r-l){
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
collecting.cpp:85:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
85 | while(r-l <= (1<<N) && st[T].query(l, r) == 0 || st[T].query(l, r) == r-l){
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
collecting.cpp:8:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
8 | #define rep(i, n) for(int (i)=0; (i)<(int)(n); (i)++)
| ^
collecting.cpp:93:9: note: in expansion of macro 'rep'
93 | rep(i, N+1){
| ^~~
collecting.cpp:94:35: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
94 | ans += cnt[0][i]*(1<<N-i);
| ~^~
collecting.cpp:95:35: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
95 | ans += cnt[1][i]*(1<<N-i);
| ~^~
collecting.cpp:57:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
57 | scanf("%d%d", &N, &Q);
| ~~~~~^~~~~~~~~~~~~~~~
collecting.cpp:68:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
68 | scanf("%d%d", &T, &X);
| ~~~~~^~~~~~~~~~~~~~~~