cheerleaders.cpp: In function 'void dfs(int, int, int)':
cheerleaders.cpp:17:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for (int i = 0; i < v2.size(); i++) {
| ~~^~~~~~~~~~~
cheerleaders.cpp:18:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | while (pos1 < v1.size() && v1[pos1] < v2[i]) pos1++;
| ~~~~~^~~~~~~~~~~
cheerleaders.cpp: In function 'int main()':
cheerleaders.cpp:37:10: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
37 | scanf("%d", &N);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
cheerleaders.cpp:38:45: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
38 | for (int i = 0; i < (1 << N); i++) scanf("%d", &A[i]);
| ~^ ~~~~~
| | |
| | long long int*
| int*
| %lld
cheerleaders.cpp:37:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
37 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
cheerleaders.cpp:38:42: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
38 | for (int i = 0; i < (1 << N); i++) scanf("%d", &A[i]);
| ~~~~~^~~~~~~~~~~~~