bootfall.cpp: In function 'int main()':
bootfall.cpp:28:26: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
for (int k = (SM + 1 & 1) + 1; k <= SM; k += 2)
~~~^~~
bootfall.cpp:29:23: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
if (dp[(k + SM >> 1) - k])
~~^~~~
bootfall.cpp:19:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n); dp[0] = 1;
~~~~~^~~~~~~~~~
bootfall.cpp:21:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &A[i]), Add(A[i]), SM += A[i];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~