sweeping.cpp: In function 'int main()':
sweeping.cpp:62:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
62 | while(N<P.size()) N*=2;
| ~^~~~~~~~~
sweeping.cpp:63:17: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
63 | while(P.size()<N) P.pb({2, 0});
| ~~~~~~~~^~
sweeping.cpp:5:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define rep(a, b) for(int a = 0; a < (b); ++a)
| ^
sweeping.cpp:64:3: note: in expansion of macro 'rep'
64 | rep(i, P.size()) wynik[i]={-1, -1};
| ^~~
sweeping.cpp:5:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define rep(a, b) for(int a = 0; a < (b); ++a)
| ^
sweeping.cpp:67:3: note: in expansion of macro 'rep'
67 | rep(i, P.size()) if(wynik[i].st!=-1) cout << wynik[i].st << " " << wynik[i].nd << '\n';
| ^~~