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