记录详情

Accepted

foo.cc: In function 'int Solve(std::vector<std::vector<int> >&)':
foo.cc:11:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   11 |     for (int i = 0; i < v.size(); i++)
      |                     ~~^~~~~~~~~~
foo.cc:13:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   13 |         for (int j = 0; j < v[i].size(); j++)
      |                         ~~^~~~~~~~~~~~~
foo.cc:18:46: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   18 |                 if (i + x[k] < 0 || i + x[k] >= v.size() || j + y[k] < 0 || j + y[k] >= v[i].size())
      |                                     ~~~~~~~~~^~~~~~~~~~~
foo.cc:18:86: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   18 |                 if (i + x[k] < 0 || i + x[k] >= v.size() || j + y[k] < 0 || j + y[k] >= v[i].size())
      |                                                                             ~~~~~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 5ms 384.0 KiB
#5 Accepted 6ms 524.0 KiB

信息

递交者
类型
递交
题目
4-4 有多少个山峰
比赛
2022暑期青少年社团(训练赛)
语言
C++
递交时间
2022-08-07 18:25:49
评测时间
2022-08-07 18:25:49
评测机
分数
100
总耗时
20ms
峰值内存
524.0 KiB