记录详情

Accepted

foo.cc: In function 'void dfs(std::vector<std::vector<int> >&, int, int)':
foo.cc:5:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    5 |     if (i < 0 || i >= islands.size() || j < 0 || j >= islands[0].size() || islands[i][j] == 0) {
      |                  ~~^~~~~~~~~~~~~~~~~
foo.cc:5:52: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    5 |     if (i < 0 || i >= islands.size() || j < 0 || j >= islands[0].size() || islands[i][j] == 0) {
      |                                                  ~~^~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int countIslands(std::vector<std::vector<int> >&)':
foo.cc:17:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   17 |     for (int i = 0; i < islands.size(); ++i) {
      |                     ~~^~~~~~~~~~~~~~~~
foo.cc:18:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   18 |         for (int j = 0; j < islands[0].size(); ++j) {
      |                         ~~^~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 284.0 KiB
#2 Accepted 2ms 332.0 KiB
#3 Accepted 2ms 336.0 KiB
#4 Accepted 2ms 284.0 KiB
#5 Accepted 2ms 284.0 KiB
#6 Accepted 2ms 284.0 KiB
#7 Accepted 2ms 284.0 KiB
#8 Accepted 2ms 284.0 KiB
#9 Accepted 2ms 328.0 KiB
#10 Accepted 1ms 284.0 KiB
#11 Accepted 2ms 348.0 KiB
#12 Accepted 2ms 284.0 KiB
#13 Accepted 2ms 284.0 KiB
#14 Accepted 2ms 284.0 KiB
#15 Accepted 2ms 328.0 KiB
#16 Accepted 2ms 412.0 KiB
#17 Accepted 2ms 412.0 KiB
#18 Accepted 4ms 284.0 KiB
#19 Accepted 3ms 284.0 KiB
#20 Accepted 4ms 324.0 KiB
#21 Accepted 35ms 688.0 KiB
#22 Accepted 34ms 692.0 KiB
#23 Accepted 34ms 696.0 KiB
#24 Accepted 34ms 696.0 KiB
#25 Accepted 34ms 696.0 KiB

信息

递交者
类型
递交
题目
P1412 Problem 6A. 岛屿数量
比赛
悬赏令第六周
语言
C++
递交时间
2023-05-29 15:22:45
评测时间
2023-05-29 15:22:45
评测机
分数
100
总耗时
226ms
峰值内存
696.0 KiB