记录详情

Accepted

/in/foo.c: In function 'find':
/in/foo.c:14:12: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(a[j]>0&&min>a[j]){
      ~~~~~~^~~~~~~~~~
/in/foo.c:19:9: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return s;
         ^
/in/foo.c: In function 'main':
/in/foo.c:14:12: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(a[j]>0&&min>a[j]){
      ~~~~~~^~~~~~~~~~
/in/foo.c:5:6: note: 'min' was declared here
  int min;
      ^~~
/in/foo.c:14:12: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(a[j]>0&&min>a[j]){
      ~~~~~~^~~~~~~~~~
/in/foo.c:5:6: note: 'min' was declared here
  int min;
      ^~~
/in/foo.c:46:2: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%d %d",m,n);
  ^~~~~~~~~~~~~~~~~~~
/in/foo.c:46:2: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized]
# 状态 耗时 内存占用
#1 Accepted 0ms 336.0 KiB
#2 Accepted 0ms 272.0 KiB
#3 Accepted 0ms 216.0 KiB
#4 Accepted 0ms 212.0 KiB
#5 Accepted 0ms 220.0 KiB

信息

递交者
类型
递交
题目
A9-2 数组中最小正数的下标
比赛
南师大(含泰州学院)2024年新生赛(第二场之预赛)
语言
C
递交时间
2024-08-27 17:27:56
评测时间
2024-08-27 17:27:56
评测机
分数
100
总耗时
3ms
峰值内存
336.0 KiB