rect.cpp: In function 'void gr(std::vector<std::vector<int> >, int)':
rect.cpp:41:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<int, 3> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for(int i=0, j; i<s.size(); i=j+1) {
| ~^~~~~~~~~
rect.cpp:42:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<int, 3> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | for(j=i; j+1<s.size()&&s[j+1][0]==s[i][0]&&s[j+1][1]==s[i][1]&&s[j+1][2]<=s[j][2]+1; ++j);
| ~~~^~~~~~~~~
rect.cpp: In function 'long long int count_rectangles(std::vector<std::vector<int> >)':
rect.cpp:70:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
70 | for(int c=0; c<p[i][j][1].size(); ++c) {
| ~^~~~~~~~~~~~~~~~~~
rect.cpp:71:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
71 | while(d<p[i][j][0].size()&&p[i][j][0][d]<=p[i][j][1][c])
| ~^~~~~~~~~~~~~~~~~~
rect.cpp:75:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
75 | while(d<p[i][j][0].size())
| ~^~~~~~~~~~~~~~~~~~