记录详情

Accepted

foo.cc: In member function 'int Solution::numIsland(std::vector<std::vector<char> >&)':
foo.cc:14:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   14 |   for (int i = 0; i < grid.size(); i++)
      |                   ~~^~~~~~~~~~~~~
foo.cc:17:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   17 |    for (int j = 0; j < grid[i].size(); j++)
      |                    ~~^~~~~~~~~~~~~~~~
foo.cc:22:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   22 |   for (int i = 0; i < grid.size(); i++)
      |                   ~~^~~~~~~~~~~~~
foo.cc:24:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   24 |    for (int j = 0; j < grid[i].size(); j++)
      |                    ~~^~~~~~~~~~~~~~~~
foo.cc: In member function 'void Solution::BFS(std::vector<std::vector<int> >&, std::vector<std::vector<char> >&, int, int)':
foo.cc:52:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   52 |     if (newx < 0 || newx >= mark.size() || newy < 0 || newy >= mark[newx].size())
      |                     ~~~~~^~~~~~~~~~~~~~
foo.cc:52:61: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   52 |     if (newx < 0 || newx >= mark.size() || newy < 0 || newy >= mark[newx].size())
      |                                                        ~~~~~^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 4ms 412.0 KiB
#3 Accepted 4ms 412.0 KiB
#4 Accepted 4ms 412.0 KiB
#5 Accepted 4ms 412.0 KiB
#6 Accepted 3ms 412.0 KiB
#7 Accepted 3ms 412.0 KiB
#8 Accepted 3ms 404.0 KiB
#9 Accepted 3ms 336.0 KiB
#10 Accepted 3ms 412.0 KiB
#11 Accepted 4ms 412.0 KiB
#12 Accepted 4ms 328.0 KiB
#13 Accepted 6ms 412.0 KiB
#14 Accepted 4ms 332.0 KiB
#15 Accepted 4ms 368.0 KiB
#16 Accepted 4ms 412.0 KiB
#17 Accepted 4ms 328.0 KiB
#18 Accepted 4ms 412.0 KiB
#19 Accepted 5ms 412.0 KiB
#20 Accepted 5ms 412.0 KiB
#21 Accepted 23ms 1.152 MiB
#22 Accepted 24ms 1.199 MiB
#23 Accepted 24ms 1.258 MiB
#24 Accepted 24ms 1.152 MiB
#25 Accepted 24ms 1.152 MiB

信息

递交者
类型
递交
题目
P1412 Problem 6A. 岛屿数量
比赛
悬赏令第六周
语言
C++
递交时间
2023-06-03 23:39:21
评测时间
2023-06-03 23:39:21
评测机
分数
100
总耗时
208ms
峰值内存
1.258 MiB