rect.cpp: In function 'long long int count_rectangles(std::vector<std::vector<int> >)':
rect.cpp:39:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
39 | auto [u, id] = V.back();
| ^
rect.cpp:57:15: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
57 | for (auto [u, v] : A[i-1][j]) {
| ^
rect.cpp:58:15: 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]
58 | while (k < A[i][j].size()-1 && A[i][j][k][0] < u) ++k;
| ~~^~~~~~~~~~~~~~~~~~
rect.cpp:73:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
73 | auto [u, id] = V.back();
| ^
rect.cpp:92:15: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
92 | for (auto [u, v] : B[i][j-1]) {
| ^
rect.cpp:98:15: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
98 | for (auto [u, v] : B[i][j]) {
| ^
rect.cpp:90:9: warning: unused variable 'k' [-Wunused-variable]
90 | int k = 0;
| ^
rect.cpp:111:13: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::array<long long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
111 | while (l < A[i][j].size() && r < B[i][j].size()) {
| ~~^~~~~~~~~~~~~~~~
rect.cpp:111:35: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::array<long long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
111 | while (l < A[i][j].size() && r < B[i][j].size()) {
| ~~^~~~~~~~~~~~~~~~
rect.cpp:121:13: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::array<long long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
121 | while (l < A[i][j].size()) {
| ~~^~~~~~~~~~~~~~~~