记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:22:8: warning: statement has no effect [-Wunused-value]
  for (i; i < num; i++)
        ^
foo.cc:26:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (a[i] > far)
       ~~~~~^~~~~
foo.cc:31:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   else if (a[i] < near)
            ~~~~~^~~~~~
foo.cc:35:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   else if(a[i]==near)
           ~~~~^~~~~~
foo.cc:40:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   else if (a[i] == far)
            ~~~~~^~~~~~
foo.cc:53:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   else if (a[i] < far && a[i] > near)
            ~~~~~^~~~~
foo.cc:53:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   else if (a[i] < far && a[i] > near)
                          ~~~~~^~~~~~
foo.cc:42:4: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
    if (j != -1)
    ^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 6. 2ms 384.0 KiB
#2 Wrong Answer Read 0, expect 2. 2ms 352.0 KiB
#3 Wrong Answer Read 0, expect 10. 2ms 384.0 KiB
#4 Wrong Answer Read 0, expect 10. 1ms 384.0 KiB
#5 Wrong Answer Read 0, expect 3. 2ms 384.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Wrong Answer Read 0, expect 3. 1ms 384.0 KiB
#8 Wrong Answer Read 0, expect 5. 1ms 384.0 KiB
#9 Wrong Answer Read 0, expect 6. 1ms 384.0 KiB
#10 Wrong Answer Read 0, expect 25. 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1001 过河
语言
C++
递交时间
2021-08-11 17:45:29
评测时间
2021-08-11 17:45:29
评测机
分数
10
总耗时
19ms
峰值内存
384.0 KiB