记录详情

Runtime Error

foo.c: In function 'main':
foo.c:24:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   24 |       if(i<a[0]||i>a[j]&&i<a[j+1])
      |                  ~~~~~~^~~~~~~~~~
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    6 |  scanf("%d",&n);
      |  ^~~~~~~~~~~~~~
foo.c:7:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    7 |  scanf("%d",&k);
      |  ^~~~~~~~~~~~~~
foo.c:9:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    9 |   scanf("%d",&a[i]);
      |   ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 768.0 KiB
#2 Accepted 1ms 640.0 KiB
#3 Accepted 1ms 640.0 KiB
#4 Accepted 1ms 640.0 KiB
#5 Accepted 1ms 640.0 KiB
#6 Accepted 2ms 640.0 KiB
#7 Accepted 1ms 768.0 KiB
#8 Accepted 2ms 640.0 KiB
#9 Accepted 2ms 640.0 KiB
#10 Accepted 1ms 640.0 KiB
#11 Accepted 2ms 640.0 KiB
#12 Accepted 2ms 640.0 KiB
#13 Accepted 2ms 640.0 KiB
#14 Accepted 1ms 640.0 KiB
#15 Accepted 1ms 640.0 KiB
#16 Accepted 2ms 640.0 KiB
#17 Accepted 2ms 768.0 KiB
#18 Accepted 1ms 640.0 KiB
#19 Accepted 1ms 640.0 KiB
#20 Accepted 2ms 640.0 KiB
#21 Accepted 1ms 640.0 KiB
#22 Accepted 1ms 640.0 KiB
#23 Accepted 2ms 640.0 KiB
#24 Accepted 2ms 640.0 KiB
#25 Accepted 1ms 640.0 KiB
#26 Accepted 2ms 640.0 KiB
#27 Accepted 1ms 640.0 KiB
#28 Accepted 1ms 640.0 KiB
#29 Accepted 2ms 640.0 KiB
#30 Accepted 1ms 640.0 KiB
#31 Runtime Error Segmentation fault 537ms 760.0 KiB
#32 Runtime Error Segmentation fault 24ms 768.0 KiB
#33 Runtime Error Segmentation fault 31ms 640.0 KiB
#34 Time Exceeded ≥1100ms ≥640.0 KiB
#35 Runtime Error Segmentation fault 15ms 768.0 KiB
#36 Runtime Error Segmentation fault 31ms 640.0 KiB
#37 Runtime Error Segmentation fault 16ms 768.0 KiB
#38 Runtime Error Segmentation fault 15ms 640.0 KiB
#39 Time Exceeded ≥1100ms ≥640.0 KiB
#40 Time Exceeded ≥1100ms ≥640.0 KiB
#41 Runtime Error Segmentation fault 15ms 640.0 KiB
#42 Runtime Error Segmentation fault 17ms 768.0 KiB
#43 Time Exceeded ≥1101ms ≥640.0 KiB
#44 Runtime Error Segmentation fault 16ms 640.0 KiB
#45 Runtime Error Segmentation fault 15ms 768.0 KiB
#46 Runtime Error Segmentation fault 16ms 768.0 KiB
#47 Runtime Error Segmentation fault 17ms 700.0 KiB
#48 Runtime Error Segmentation fault 18ms 640.0 KiB
#49 Runtime Error Segmentation fault 21ms 640.0 KiB
#50 Runtime Error Segmentation fault 16ms 640.0 KiB
#51 Runtime Error Segmentation fault 22ms 768.0 KiB
#52 Runtime Error Segmentation fault 15ms 640.0 KiB
#53 Runtime Error Segmentation fault 16ms 768.0 KiB
#54 Runtime Error Segmentation fault 18ms 640.0 KiB
#55 Runtime Error Segmentation fault 18ms 768.0 KiB
#56 Time Exceeded ≥1100ms ≥640.0 KiB
#57 Runtime Error Segmentation fault 96ms 640.0 KiB
#58 Runtime Error Segmentation fault 17ms 640.0 KiB
#59 Runtime Error Segmentation fault 16ms 640.0 KiB
#60 Runtime Error Segmentation fault 18ms 640.0 KiB

信息

递交者
类型
递交
题目
P1346 1C 在数组中添加元素
比赛
悬赏令第一周
语言
C
递交时间
2022-03-30 14:00:50
评测时间
2022-03-30 14:01:03
评测机
分数
60
总耗时
6632ms
峰值内存
768.0 KiB