记录详情

Runtime Error

foo.cc: In function 'void Output(std::vector<std::vector<int> >&)':
foo.cc:25:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   25 |  for(int i=0; i<M.size(); i++)
      |               ~^~~~~~~~~
foo.cc:27:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   27 |   for(int j=0; j<M[i].size(); j++)
      |                ~^~~~~~~~~~~~
foo.cc: In function 'void SortRow(std::vector<std::vector<int> >&)':
foo.cc:36:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   36 |  for(int k=0; k<M.size(); k++)//要对M.size行进行排序
      |               ~^~~~~~~~~
foo.cc: In function 'int main(int, char**)':
foo.cc:10:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
   10 |  freopen("data.txt", "r", stdin);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Aborted 3ms 512.0 KiB
#2 Runtime Error Aborted 2ms 640.0 KiB
#3 Runtime Error Aborted 2ms 512.0 KiB
#4 Runtime Error Aborted 3ms 512.0 KiB
#5 Runtime Error Aborted 3ms 640.0 KiB

信息

递交者
类型
递交
题目
6-5 矩阵的行排序
语言
C++
递交时间
2021-12-14 11:10:25
评测时间
2021-12-14 11:10:25
评测机
分数
0
总耗时
15ms
峰值内存
640.0 KiB