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