Wrong Answer

foo.cc: In function 'void colsort(std::vector<std::vector<int> >&)':
foo.cc:17:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   17 |  for (int i = 0; i < M[0].size(); i++) {
      |                  ~~^~~~~~~~~~~~~
foo.cc:18:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   18 |   for (int j = 0; j < M.size(); j++) {
      |                   ~~^~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:43:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   43 |  for (int i = 0; i < M.size(); i++) {
      |                  ~~^~~~~~~~~~
foo.cc:44:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   44 |   for (int j = 0; j < M[i].size(); j++) {
      |                   ~~^~~~~~~~~~~~~
foo.cc:48:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   48 |   if (i != M.size() - 1) {
      |       ~~^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 1,9c1,9 < 1 2 3 3ms 384.0 KiB
#2 Wrong Answer 1,8c1,8 < 1 2 3 2ms 384.0 KiB
#3 Wrong Answer 1,20c1,20 < 1 2 3 2ms 384.0 KiB
#4 Wrong Answer 1,50c1,50 < 1 2 3 3ms 384.0 KiB
#5 Wrong Answer 1,100c1,100 < 1 2 8ms 384.0 KiB

信息

递交者
类型
递交
题目
P1099 6-6 矩阵的列排序
语言
C++
递交时间
2021-12-09 15:11:50
评测时间
2021-12-09 15:11:50
评测机
分数
0
总耗时
20ms
峰值内存
384.0 KiB