sequence.cpp: In function 'void Solve(int, int, int, int, int)':
sequence.cpp:15:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int md = l + r >> 1, opt = -1;
~~^~~
sequence.cpp: In function 'int main()':
sequence.cpp:32:15: error: 'i' was not declared in this scope
Solve(i, n, i, n, lvl & 1), dp[0][0] = 2e18;
^
sequence.cpp:26:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &k); k ++;
~~~~~^~~~~~~~~~~~~~~~
sequence.cpp:28:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &A[i]), A[i] += A[i - 1];
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~