sequence.cpp: In function 'void calc(int, int, int, int, int)':
sequence.cpp:10:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
10 | int m = l + r >> 1;
| ~~^~~
sequence.cpp: In function 'int main()':
sequence.cpp:35:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
35 | printf("%I64ld\n", dp[n][K & 1]);
| ~~~~~^ ~~~~~~~~~~~~
| | |
| long int long long int
| %I64lld
sequence.cpp:27:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
27 | scanf("%d %d\n", &n, &K);
| ~~~~~^~~~~~~~~~~~~~~~~~~
sequence.cpp:30:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
30 | scanf("%d", &x);
| ~~~~~^~~~~~~~~~