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