joiris.cpp: In function 'int main()':
joiris.cpp:82:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wformat=]
82 | printf("%d\n", ans.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<std::pair<int, int> >::size_type {aka long unsigned int}
| %ld
joiris.cpp:83: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]
83 | for (int i = 0; i < ans.size(); i++)printf("%d %d\n", ans[i].first, ans[i].second + 1);
| ~~^~~~~~~~~~~~
joiris.cpp:61:6: warning: unused variable 'maxi' [-Wunused-variable]
61 | int maxi = 0;
| ^~~~
joiris.cpp:11:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | scanf("%d%d", &num, &len);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
joiris.cpp:16:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
16 | scanf("%d", &z);
| ~~~~~^~~~~~~~~~