记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:5:14: warning: unused variable 'x' [-Wunused-variable]
  int m,n,i,j,x;
              ^
/in/foo.c:5:12: warning: unused variable 'j' [-Wunused-variable]
  int m,n,i,j,x;
            ^
/in/foo.c:27:5: warning: 'amin' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(a[i]<amin && a[i]>0)
     ^
/in/foo.c:18:10: note: 'amin' was declared here
  int i,j,amin;
          ^~~~
/in/foo.c:27:5: warning: 'amin' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(a[i]<amin && a[i]>0)
     ^
/in/foo.c:18:10: note: 'amin' was declared here
  int i,j,amin;
          ^~~~
/in/foo.c:13:2: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%d %d",A(a,m),A(b,n));
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:13:2: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
/in/foo.c: In function 'A':
/in/foo.c:27:5: warning: 'amin' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(a[i]<amin && a[i]>0)
     ^
/in/foo.c:32:9: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return j;
         ^
# 状态 耗时 内存占用
#1 Accepted 1ms 228.0 KiB
#2 Accepted 1ms 232.0 KiB
#3 Accepted 1ms 228.0 KiB
#4 Accepted 1ms 228.0 KiB
#5 Accepted 1ms 224.0 KiB

信息

递交者
类型
递交
题目
A9-2 数组中最小正数的下标
比赛
基于整数数组的编程技能的进阶训练(一)
语言
C
递交时间
2019-02-17 23:50:37
评测时间
2019-02-17 23:50:37
评测机
分数
100
总耗时
5ms
峰值内存
232.0 KiB