islands.cpp: In function 'int main()':
islands.cpp:69:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<long long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
69 | for (int j = 0; j < P.size()<<1; j++) {
| ~~^~~~~~~~~~~~~
islands.cpp:71:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<long long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
71 | p += j >= P.size() ? cyc_len : 0ll;
| ~~^~~~~~~~~~~
islands.cpp:72:35: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<std::array<long long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
72 | while (dq.size() && dq.front() <= j-P.size()) {
| ~~~~~~~~~~~^~~~~~~~~~~~~
islands.cpp:75:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<long long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
75 | if (!dq.size() && j >= P.size() || dq.size() && dq.front() >= P.size()) break;
| ~~^~~~~~~~~~~
islands.cpp:75:63: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<std::array<long long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
75 | if (!dq.size() && j >= P.size() || dq.size() && dq.front() >= P.size()) break;
| ~~~~~~~~~~~^~~~~~~~~~~
islands.cpp:75:19: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
75 | if (!dq.size() && j >= P.size() || dq.size() && dq.front() >= P.size()) break;
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~
islands.cpp:80:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<long long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
80 | if (j < P.size()) {
| ~~^~~~~~~~~~
islands.cpp:88:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<long long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
88 | p += j >= P.size() ? cyc_len : 0ll;
| ~~^~~~~~~~~~~
islands.cpp:89:35: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<std::array<long long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
89 | while (dq.size() && dq.front() >= j+P.size()) {
| ~~~~~~~~~~~^~~~~~~~~~~~~
islands.cpp:92:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<long long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
92 | if (!dq.size() && j < P.size() || dq.size() && dq.front() < P.size()) break;
| ~~^~~~~~~~~~
islands.cpp:92:62: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<std::array<long long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
92 | if (!dq.size() && j < P.size() || dq.size() && dq.front() < P.size()) break;
| ~~~~~~~~~~~^~~~~~~~~~
islands.cpp:92:19: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
92 | if (!dq.size() && j < P.size() || dq.size() && dq.front() < P.size()) break;
| ~~~~~~~~~~~^~~~~~~~~~~~~~~
islands.cpp:97:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<long long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
97 | if (j >= P.size()) {
| ~~^~~~~~~~~~~