记录详情

Runtime Error

foo.c: In function 'main':
foo.c:11:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long long int *' [-Wformat=]
  scanf("%d %d",&n,&k);
         ~^     ~~
         %lld
foo.c:11:13: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=]
  scanf("%d %d",&n,&k);
            ~^     ~~
            %lld
foo.c:14:11: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long long int *' [-Wformat=]
   scanf("%d",&a[i]);
          ~^  ~~~~~
          %lld
foo.c:36:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
  printf("%d",count);
          ~^
          %lld
foo.c:11:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d",&n,&k);
  ^~~~~~~~~~~~~~~~~~~~
foo.c:14:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&a[i]);
   ^~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Accepted 1ms 256.0 KiB
#3 Wrong Answer Read {0}, expect {1}. ["342","599"] 1ms 256.0 KiB
#4 Runtime Error Segmentation fault 2ms 1.0 MiB
#5 Wrong Answer Read {0}, expect {1}. ["816582","943886"] 3ms 384.0 KiB
#6 Wrong Answer Read {0}, expect {1}. ["1220262","703626"] 12ms 1.199 MiB
#7 Wrong Answer Read {0}, expect {1}. ["1132474","1198774"] 18ms 1.844 MiB
#8 Runtime Error Segmentation fault 24ms 2.582 MiB
#9 Wrong Answer Read {0}, expect {1}. ["839185","850355"] 66ms 6.617 MiB
#10 Runtime Error Segmentation fault 110ms 10.754 MiB

信息

递交者
类型
递交
题目
P1167 连续数之和
语言
C
递交时间
2021-01-28 09:52:37
评测时间
2021-01-28 09:52:37
评测机
分数
20
总耗时
241ms
峰值内存
10.754 MiB