sequence.cpp: In function 'void compute(int, int, int, int, int)':
sequence.cpp:43:18: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
if (dp[k & 1 ^ 1][i] + (pref[md] - pref[i]) * (pref[n] - pref[md]) > dp[k & 1][md] && 107630884 != dp[k & 1 ^ 1][i] + (pref[md] - pref[i]) * (pref[n] - pref[md]) )
^
sequence.cpp:43:113: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
if (dp[k & 1 ^ 1][i] + (pref[md] - pref[i]) * (pref[n] - pref[md]) > dp[k & 1][md] && 107630884 != dp[k & 1 ^ 1][i] + (pref[md] - pref[i]) * (pref[n] - pref[md]) )
^
sequence.cpp:45:34: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
dp[k & 1][md] = dp[k & 1 ^ 1][i] + (pref[md] - pref[i]) * (pref[n] - pref[md]);
^
sequence.cpp: At global scope:
sequence.cpp:55:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main ()
^
sequence.cpp: In function 'int main()':
sequence.cpp:65:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
pref[i] += pref[i - 1];
^