记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/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);
          ^
/in/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);
             ^
/in/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]);
           ^
/in/foo.c:12:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=0; i<n; i++)
  ^~~
/in/foo.c:14:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   long long int sum[n];
   ^~~~
/in/foo.c:17:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=0; i<k; i++)
  ^~~
/in/foo.c:19:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(i=0; i<n; i++) {
   ^~~
/in/foo.c:30:13: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
  printf("\n%d",count);
             ^
# 状态 耗时 内存占用
#1 Wrong Answer 0ms 216.0 KiB
#2 Wrong Answer 0ms 228.0 KiB
#3 Wrong Answer 0ms 228.0 KiB
#4 Wrong Answer 1ms 868.0 KiB
#5 Wrong Answer 1ms 352.0 KiB
#6 Wrong Answer 7ms 968.0 KiB
#7 Wrong Answer 10ms 1.418 MiB
#8 Wrong Answer 13ms 2.066 MiB
#9 Wrong Answer 39ms 4.777 MiB
#10 Wrong Answer 64ms 7.871 MiB

信息

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