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