记录详情

Accepted

/in/foo.c: In function 'FindMinPos':
/in/foo.c:16:5: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(a[i]<min&&a[i]>0)
     ^
/in/foo.c:22:9: warning: 'imin' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return imin;
         ^~~~
/in/foo.c: In function 'main':
/in/foo.c:16:5: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(a[i]<min&&a[i]>0)
     ^
/in/foo.c:4:11: note: 'min' was declared here
  int imin,min;
           ^~~
/in/foo.c:16:5: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(a[i]<min&&a[i]>0)
     ^
/in/foo.c:4:11: note: 'min' was declared here
  int imin,min;
           ^~~
/in/foo.c:39:2: warning: 'imin' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%d %d",c,d);
  ^~~~~~~~~~~~~~~~~~~
/in/foo.c:39:2: warning: 'imin' may be used uninitialized in this function [-Wmaybe-uninitialized]
# 状态 耗时 内存占用
#1 Accepted 1ms 236.0 KiB
#2 Accepted 0ms 200.0 KiB
#3 Accepted 0ms 228.0 KiB
#4 Accepted 0ms 200.0 KiB
#5 Accepted 0ms 212.0 KiB

信息

递交者
类型
递交
比赛
2024程序设计与竞赛作业赛第一场(喜相逢)
语言
C
递交时间
2024-10-04 21:53:23
评测时间
2024-10-04 21:53:23
评测机
分数
100
总耗时
4ms
峰值内存
236.0 KiB