sequence.cpp: In function 'void calc(int, int, int, int, int)':
sequence.cpp:11:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
11 | int m = l + r >> 1;
| ~~^~~
sequence.cpp: In function 'int main()':
sequence.cpp:35:17: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int64_t' {aka 'long int'} [-Wformat=]
35 | printf("%I64d\n", dp[n][K & 1]);
| ~~~~^ ~~~~~~~~~~~~
| | |
| int int64_t {aka long int}
| %I64ld
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);
| ~~~~~^~~~~~~~~~