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