poi.cpp: In function 'int main()':
poi.cpp:21:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for (j = 0; j < solved[i].size(); j++) {
| ~~^~~~~~~~~~~~~~~~~~
poi.cpp:40:17: warning: format '%d' expects argument of type 'int', but argument 3 has type 'std::iterator_traits<int*>::difference_type' {aka 'long int'} [-Wformat=]
40 | printf("%d %d", final[p], std::distance(ppl - 1, std::find(ppl, ppl + n, p)));
| ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| int std::iterator_traits<int*>::difference_type {aka long int}
| %ld
poi.cpp:7:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | scanf("%d%d%d", &n, &t, &p);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
poi.cpp:13:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | scanf("%d", &x);
| ~~~~~^~~~~~~~~~