记录详情

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 0ms 256.0 KiB
#2 Wrong Answer Read {0}, expect {1}. ["199426","5050"] 0ms 256.0 KiB
#3 Wrong Answer Read {0}, expect {1}. ["278","599"] 0ms 256.0 KiB
#4 Runtime Error Segmentation fault 1ms 1.0 MiB
#5 Wrong Answer Read {0}, expect {1}. ["922198","943886"] 2ms 384.0 KiB
#6 Wrong Answer Read {0}, expect {1}. ["38906","703626"] 6ms 1.027 MiB
#7 Wrong Answer Read {0}, expect {1}. ["1195123","1198774"] 9ms 1.484 MiB
#8 Runtime Error Segmentation fault 12ms 2.133 MiB
#9 Wrong Answer Read {0}, expect {1}. ["840202","850355"] 33ms 4.941 MiB
#10 Runtime Error Segmentation fault 54ms 7.945 MiB

信息

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