bootfall.cpp:2: warning: ignoring #pragma GCC Optimize [-Wunknown-pragmas]
2 | #pragma GCC Optimize("unroll-loops")
|
bootfall.cpp: In function 'int main()':
bootfall.cpp:24:70: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
24 | for (int j = 1; j <= tot - a[i]; j++) good[j] = !(tot - a[i] + j & 1) && (tot - a[i] + j >> 1) >= j && possible[(tot - a[i] + j >> 1) - j];
| ~~~~~~~~~~~^~~
bootfall.cpp:24:94: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
24 | for (int j = 1; j <= tot - a[i]; j++) good[j] = !(tot - a[i] + j & 1) && (tot - a[i] + j >> 1) >= j && possible[(tot - a[i] + j >> 1) - j];
| ~~~~~~~~~~~^~~
bootfall.cpp:24:133: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
24 | for (int j = 1; j <= tot - a[i]; 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);
| ~~~~~^~~~~~~~~~~~~