lyuboyn.cpp: In function 'int main()':
lyuboyn.cpp:25:17: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
25 | int M = 1 << K + 1;
| ~~^~~
lyuboyn.cpp:41:28: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
41 | f[p + i] = f[p - i - 1] ^ ((M >> 1) - 1) | p;
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
lyuboyn.cpp:52:19: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
52 | int X = f[S_pos + i & (1 << N) - 1];
| ~~~~~~^~~
lyuboyn.cpp:12:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | scanf("%d%d%d", &N, &K, &T);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
lyuboyn.cpp:14:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | scanf("%s", S);
| ~~~~~^~~~~~~~~