记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
自测
题目
6-7 矩阵的行列排序
语言
C++
递交时间
2021-12-09 14:53:43
评测时间
2021-12-09 14:53:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes