foo.cc: In function 'void Output(std::vector<std::vector<int> >&)':
foo.cc:27:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for(int i=0; i<M.size(); i++)
| ~^~~~~~~~~
foo.cc:29:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | for(int j=0; j<M[i].size(); j++)
| ~^~~~~~~~~~~~
foo.cc: In function 'void InsertSort(std::vector<int>&)':
foo.cc:45:5: error: 'j' was not declared in this scope
45 | v[j+1]=tmp; // 到位
| ^
foo.cc: In function 'void SortAll(std::vector<std::vector<int> >&)':
foo.cc:58:6: error: 'j' was not declared in this scope
58 | M[(j+1)/n][(j+1)%n] = tmp; // 到位
| ^
foo.cc: In function 'void SortRow(std::vector<std::vector<int> >&)':
foo.cc:103:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
103 | for(int k=0; k<M.size(); k++)
| ~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务