记录详情

Wrong Answer

foo.c: In function ‘main’:
foo.c:9:25: warning: implicit declaration of function ‘find’ [-Wimplicit-function-declaration]
    9 |         printf("%d %d", find(a, n1), find(b, n2));
      |                         ^~~~
foo.c: In function ‘input’:
foo.c:20:1: warning: control reaches end of non-void function [-Wreturn-type]
   20 | }
      | ^
foo.c: In function ‘find’:
foo.c:35:20: warning: ‘num’ may be used uninitialized [-Wmaybe-uninitialized]
   35 |                 if (a[i] <= num && a[i] > 0)
      |                    ^
foo.c:24:13: note: ‘num’ was declared here
   24 |         int num;
      |             ^~~
foo.c:40:17: warning: ‘cnt’ may be used uninitialized [-Wmaybe-uninitialized]
   40 |         }return cnt;
      |                 ^~~
foo.c:25:13: note: ‘cnt’ was declared here
   25 |         int cnt;
      |             ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 288.0 KiB
#2 Wrong Answer Read 9, expect 7. 1ms 288.0 KiB
#3 Accepted 1ms 320.0 KiB
#4 Accepted 1ms 516.0 KiB
#5 Accepted 1ms 288.0 KiB

信息

递交者
类型
递交
题目
A9-2 数组中最小正数的下标
比赛
2024程序设计与竞赛作业赛第一场(喜相逢)
语言
C
递交时间
2024-10-01 18:14:06
评测时间
2024-10-01 18:14:06
评测机
分数
80
总耗时
8ms
峰值内存
516.0 KiB