bootfall.cpp: In function 'bool check2(std::vector<long long int>&, long long int)':
bootfall.cpp:59:27: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
59 | for (int i = 0; i < v.size(); ++i) {
| ~~^~~~~~~~~~
bootfall.cpp: At global scope:
bootfall.cpp:97:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
97 | main()
| ^~~~
bootfall.cpp: In function 'int main()':
bootfall.cpp:102:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
102 | scanf("%d", &n);
| ~^ ~~
| | |
| | ll* {aka long long int*}
| int*
| %lld
bootfall.cpp:106:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
106 | scanf("%d", &a[i]);
| ~^ ~~~~~
| | |
| | ll* {aka long long int*}
| int*
| %lld
bootfall.cpp:123:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wformat=]
123 | printf("%d\n", ans.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<long long int>::size_type {aka long unsigned int}
| %ld
bootfall.cpp:125:22: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
125 | for(int i = 0; i < ans.size(); i++) {
| ~~^~~~~~~~~~~~
bootfall.cpp:127:18: warning: format '%d' expects argument of type 'int', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} [-Wformat=]
127 | printf("%d ", ans[i]);
| ~^
| |
| int
| %lld
bootfall.cpp:102:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
102 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
bootfall.cpp:106:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
106 | scanf("%d", &a[i]);
| ~~~~~^~~~~~~~~~~~~