autobahn.cpp: In function 'int main()':
autobahn.cpp:24:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for(int i = 0; i < size(P); i++) { mp[P[i]] = i; }
| ~~^~~~~~~~~
autobahn.cpp:27:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for(int i = 0; i < size(P)-1; i++) { imos[i+1] += imos[i]; }
| ~~^~~~~~~~~~~
autobahn.cpp:31:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | for(int i = 0; i < size(P)-1; i++) { imos2[i+1] += imos2[i]; }
| ~~^~~~~~~~~~~
autobahn.cpp:32:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | for(int i = 0; i < size(P); i++) { if(imos[i] < K) { imos2[i] = 0; } }
| ~~^~~~~~~~~
autobahn.cpp:42:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | for(int i = 0, j = 0; i+1 < size(P); i++) {
| ~~~~^~~~~~~~~
autobahn.cpp:43:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | for(; j+1 < size(P); j++) {
| ~~~~^~~~~~~~~