记录详情

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:13: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:32: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:13: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}. ["100","5050"] 1ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 2ms 1.0 MiB
#5 Wrong Answer Read {0}, expect {1}. ["844651","943886"] 2ms 488.0 KiB
#6 Wrong Answer Read {0}, expect {1}. ["1098289","703626"] 6ms 1.309 MiB
#7 Wrong Answer Read {0}, expect {1}. ["1182484","1198774"] 11ms 1.828 MiB
#8 Accepted 16ms 2.398 MiB
#9 Wrong Answer Read {0}, expect {1}. ["849575","850355"] 41ms 5.582 MiB
#10 Runtime Error Segmentation fault 66ms 8.641 MiB

信息

递交者
类型
递交
题目
P1167 连续数之和
语言
C
递交时间
2021-01-28 09:39:41
评测时间
2021-01-28 09:39:41
评测机
分数
40
总耗时
149ms
峰值内存
8.641 MiB