/ Vijos /

记录详情

Runtime Error

foo.c: In function 'judgement':
foo.c:33:17: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
   33 |         else if(abs(small1-small2)==2&&small1>small2&&small2>=type-1)
      |                 ^~~
foo.c:3:1: note: include '<stdlib.h>' or provide a declaration of 'abs'
    2 | #include<math.h>
  +++ |+#include <stdlib.h>
    3 | char score[100];
foo.c: In function 'main':
foo.c:57:43: warning: comparison between pointer and integer
   57 |                 if(score[p]=='W'||score[p]=="L")
      |                                           ^~
foo.c:57:43: warning: comparison with string literal results in unspecified behavior [-Waddress]
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Wrong Answer Read 11:0, expect 11:3. 1ms 256.0 KiB
#3 Wrong Answer Read 11:0, expect 11:4. 3ms 256.0 KiB
#4 Wrong Answer Read 11:0, expect 10:12. 1ms 256.0 KiB
#5 Runtime Error Segmentation fault 3ms 384.0 KiB
#6 Runtime Error Segmentation fault 3ms 384.0 KiB
#7 Wrong Answer Read 0:0, expect 0:11. 3ms 256.0 KiB
#8 Wrong Answer Read 2:0, expect 1:1. 2ms 256.0 KiB
#9 Wrong Answer Read 11:0, expect 148:148. 2ms 256.0 KiB
#10 Wrong Answer 2,3d1 < 1:0 < 5a4 > 11:0 0ms 256.0 KiB

信息

递交者
类型
递交
题目
P1217 乒乓球
语言
C
递交时间
2022-09-08 13:38:13
评测时间
2022-09-08 14:00:04
评测机
分数
10
总耗时
24ms
峰值内存
384.0 KiB