bootfall.cpp: In function 'void DNC(int, int, std::bitset<255025>)':
bootfall.cpp:9:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
9 | int mid=l+r>>1;
| ~^~
bootfall.cpp: In function 'int main()':
bootfall.cpp:43:11: warning: format '%i' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wformat=]
43 | printf("%i\n",ans.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<int>::size_type {aka long unsigned int}
| %li
bootfall.cpp:27:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
27 | scanf("%i",&n);
| ~~~~~^~~~~~~~~
bootfall.cpp:29:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
29 | for(int i=1;i<=n;i++)scanf("%i",&a[i]),sum+=a[i];
| ~~~~~^~~~~~~~~~~~