记录详情

Runtime Error

foo.c: In function 'main':
foo.c:15:13: warning: comparison between pointer and integer
   15 |         if(x<k)
      |             ^
foo.c:19:17: warning: comparison between pointer and integer
   19 |        else if(x>k) printf("%d ",x[i]);
      |                 ^
foo.c:7:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    7 |     scanf("%d%d",&n,&k);
      |     ^~~~~~~~~~~~~~~~~~~
foo.c:10:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   10 |         scanf("%d",&x[i]);
      |         ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 2ms 256.0 KiB
#2 Wrong Answer User output longer than standard answer. 2ms 256.0 KiB
#3 Wrong Answer User output longer than standard answer. 2ms 256.0 KiB
#4 Wrong Answer User output longer than standard answer. 4ms 256.0 KiB
#5 Runtime Error Segmentation fault 2ms 384.0 KiB

信息

递交者
类型
递交
题目
2-4 点名上前
比赛
2022暑期青少年社团(入门赛)
语言
C
递交时间
2022-07-28 18:11:16
评测时间
2022-07-28 18:11:16
评测机
分数
0
总耗时
15ms
峰值内存
384.0 KiB