记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:9:18: warning: implicit declaration of function 'find' [-Wimplicit-function-declaration]
  printf("%d %d", find(a, n1), find(b, n2));
                  ^~~~
/in/foo.c: In function 'find':
/in/foo.c:25:6: warning: unused variable 'cnt' [-Wunused-variable]
  int cnt;
      ^~~
/in/foo.c: In function 'input':
/in/foo.c:20:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/foo.c: In function 'main':
/in/foo.c:35:6: warning: 'num' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (a[i] >= num && a[i] < 0)
      ^
/in/foo.c:24:6: note: 'num' was declared here
  int num;
      ^~~
/in/foo.c:35:6: warning: 'num' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (a[i] >= num && a[i] < 0)
      ^
/in/foo.c:24:6: note: 'num' was declared here
  int num;
      ^~~
/in/foo.c: In function 'find':
/in/foo.c:35:6: warning: 'num' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (a[i] >= num && a[i] < 0)
      ^
# 状态 耗时 内存占用
#1 Accepted 0ms 376.0 KiB
#2 Accepted 1ms 400.0 KiB
#3 Accepted 0ms 360.0 KiB
#4 Accepted 0ms 360.0 KiB
#5 Accepted 0ms 352.0 KiB

信息

递交者
类型
递交
题目
A9-3 数组中最大的负数
比赛
2024程序设计与竞赛作业赛第一场(喜相逢)
语言
C
递交时间
2024-10-01 18:15:48
评测时间
2024-10-01 18:15:48
评测机
分数
100
总耗时
4ms
峰值内存
400.0 KiB