记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:4:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
  scanf("%d",&n);
  ^~~~~
/in/foo.c:4:2: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:4:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:22:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
  printf("%d",sum);
  ^~~~~~
/in/foo.c:22:2: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:22:2: note: include '<stdio.h>' or provide a declaration of 'printf'
/in/foo.c:3:21: warning: variable 'max' set but not used [-Wunused-but-set-variable]
  int n,a[10000],i,j,max,h,b,sum=0;
                     ^~~
/in/foo.c:3:19: warning: unused variable 'j' [-Wunused-variable]
  int n,a[10000],i,j,max,h,b,sum=0;
                   ^
/in/foo.c:15:6: warning: 'h' may be used uninitialized in this function [-Wmaybe-uninitialized]
  a[0]=h;
  ~~~~^~
# 状态 耗时 内存占用
#1 Accepted 1ms 360.0 KiB
#2 Accepted 1ms 236.0 KiB

信息

递交者
类型
递交
题目
1-4 最大值的个数
比赛
中北 计算机2021级专业修读指导(2)
语言
C
递交时间
2021-12-07 19:58:16
评测时间
2021-12-07 19:58:16
评测机
分数
100
总耗时
3ms
峰值内存
360.0 KiB