bootfall.cpp: In function 'int main()':
bootfall.cpp:24:65: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
24 | for (int j = 1; j < 250001; j++) good[j] = !(tot - a[i] + j & 1) && (tot - a[i] + j >> 1) >= j && possible[(tot - a[i] + j >> 1) - j];
| ~~~~~~~~~~~^~~
bootfall.cpp:24:89: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
24 | for (int j = 1; j < 250001; j++) good[j] = !(tot - a[i] + j & 1) && (tot - a[i] + j >> 1) >= j && possible[(tot - a[i] + j >> 1) - j];
| ~~~~~~~~~~~^~~
bootfall.cpp:24:128: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
24 | for (int j = 1; j < 250001; j++) good[j] = !(tot - a[i] + j & 1) && (tot - a[i] + j >> 1) >= j && possible[(tot - a[i] + j >> 1) - j];
| ~~~~~~~~~~~^~~
bootfall.cpp:28:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::size_t' {aka 'long unsigned int'} [-Wformat=]
28 | printf("%d\n", ans.count());
| ~^ ~~~~~~~~~~~
| | |
| int std::size_t {aka long unsigned int}
| %ld
bootfall.cpp:7:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
7 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
bootfall.cpp:11:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | scanf("%d", a + i);
| ~~~~~^~~~~~~~~~~~~