foo.cc: In function 'int main()':
foo.cc:35:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < matrix.size(); ++i)
~~^~~~~~~~~~~~~~~
foo.cc:39:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < matrix.size(); ++i)
~~^~~~~~~~~~~~~~~
foo.cc:41:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < matrix[0].size(); ++j)
~~^~~~~~~~~~~~~~~~~~
foo.cc:62:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (x >= 0 && x < matrix.size() && y >= 0 && y < matrix[0].size())
~~^~~~~~~~~~~~~~~
foo.cc:62:60: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (x >= 0 && x < matrix.size() && y >= 0 && y < matrix[0].size())
~~^~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务