记录详情

Compile Error

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

信息

递交者
类型
递交
比赛
2021(四) 作业第四场:加速赛
语言
C++
递交时间
2021-12-08 19:58:49
评测时间
2021-12-08 19:58:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes