quality.cpp: In function 'bool check(int, int, int, std::vector<std::vector<int> >&)':
quality.cpp:10:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for (int i = 1; i < a.size(); ++i) for (int j = 0; j < a.front().size(); ++j) pref[i][j] += pref[i - 1][j];
| ~~^~~~~~~~~~
quality.cpp:10:58: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for (int i = 1; i < a.size(); ++i) for (int j = 0; j < a.front().size(); ++j) pref[i][j] += pref[i - 1][j];
| ~~^~~~~~~~~~~~~~~~~~
quality.cpp:11:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | for (int i = 0; i < a.size(); ++i) for (int j = 1; j < a.front().size(); ++j) pref[i][j] += pref[i][j - 1];
| ~~^~~~~~~~~~
quality.cpp:11:58: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | for (int i = 0; i < a.size(); ++i) for (int j = 1; j < a.front().size(); ++j) pref[i][j] += pref[i][j - 1];
| ~~^~~~~~~~~~~~~~~~~~
quality.cpp:12:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | for (int i = 0; i + h - 1 < a.size(); ++i)
| ~~~~~~~~~~^~~~~~~~~~
quality.cpp:14:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | for (int j = 0; j + w - 1 < a.front().size(); ++j)
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~