记录详情

Runtime Error

foo.c: In function 'main':
foo.c:8:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
  scanf("%d %d",&n,&k);
  ^~~~~
foo.c:8:2: warning: incompatible implicit declaration of built-in function 'scanf'
foo.c:8:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
foo.c:8: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:8: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:10: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:29:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
  printf("%d",count);
  ^~~~~~
foo.c:29:2: warning: incompatible implicit declaration of built-in function 'printf'
foo.c:29:2: note: include '<stdio.h>' or provide a declaration of 'printf'
foo.c:29:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
  printf("%d",count);
          ~^
          %lld
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Wrong Answer Read {0}, expect {1}. ["100","5050"] 0ms 256.0 KiB
#3 Accepted 0ms 256.0 KiB
#4 Accepted 2ms 1.0 MiB
#5 Wrong Answer Read {0}, expect {1}. ["844651","943886"] 2ms 384.0 KiB
#6 Wrong Answer Read {0}, expect {1}. ["1098289","703626"] 7ms 1.004 MiB
#7 Wrong Answer Read {0}, expect {1}. ["1182484","1198774"] 10ms 1.449 MiB
#8 Accepted 14ms 2.121 MiB
#9 Wrong Answer Read {0}, expect {1}. ["849575","850355"] 35ms 4.914 MiB
#10 Runtime Error Segmentation fault 60ms 7.895 MiB

信息

递交者
类型
递交
题目
P1167 连续数之和
语言
C
递交时间
2021-01-28 10:32:33
评测时间
2021-01-28 10:32:33
评测机
分数
40
总耗时
135ms
峰值内存
7.895 MiB