Main.cpp: In function 'int main()':
Main.cpp:21:23: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
21 | aa[n++] = a >> l + 1 | 1 << L - 1 - l;
| ~~^~~
Main.cpp:21:40: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
21 | aa[n++] = a >> l + 1 | 1 << L - 1 - l;
| ^
Main.cpp:31:23: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
31 | aa[n++] = a >> l + 1 | 1 << L - 1 - l;
| ~~^~~
Main.cpp:31:40: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
31 | aa[n++] = a >> l + 1 | 1 << L - 1 - l;
| ^
Main.cpp:9:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | scanf("%*d%d", &q);
| ~~~~~^~~~~~~~~~~~~
Main.cpp:15:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | scanf("%s", s);
| ~~~~~^~~~~~~~~
Main.cpp:17:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | scanf("%d", &a);
| ~~~~~^~~~~~~~~~
Main.cpp:27:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
27 | scanf("%d", &a);
| ~~~~~^~~~~~~~~~
Main.cpp:37:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
37 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
Main.cpp:40:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | scanf("%d", &a);
| ~~~~~^~~~~~~~~~