记录详情

Accepted

foo.c: In function 'main':
foo.c:6:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
  scanf("%d%d",&n1,&n2);
  ^~~~~
foo.c:6:2: warning: incompatible implicit declaration of built-in function 'scanf'
foo.c:6:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
foo.c:11:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
  printf("%d %d",FindiSecondMax(n1,a),FindiSecondMax(n2,b));
  ^~~~~~
foo.c:11:2: warning: incompatible implicit declaration of built-in function 'printf'
foo.c:11:2: note: include '<stdio.h>' or provide a declaration of 'printf'
foo.c:11:2: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%d %d",FindiSecondMax(n1,a),FindiSecondMax(n2,b));
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:27:5: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(i==k)
     ^
foo.c:15:14: note: 'k' was declared here
  int max=0,i,k,m;
              ^
foo.c:11:2: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%d %d",FindiSecondMax(n1,a),FindiSecondMax(n2,b));
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:27:5: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(i==k)
     ^
foo.c:15:14: note: 'k' was declared here
  int max=0,i,k,m;
              ^
foo.c: In function 'FindiSecondMax':
foo.c:35:9: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return m;
         ^
foo.c:27:5: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(i==k)
     ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 0ms 256.0 KiB
#2 Accepted 0ms 256.0 KiB
#3 Accepted 0ms 256.0 KiB
#4 Accepted 0ms 256.0 KiB
#5 Accepted 0ms 256.0 KiB

信息

递交者
类型
递交
比赛
2021(四) 作业第二场:见面赛
语言
C
递交时间
2021-10-31 09:40:27
评测时间
2021-10-31 09:40:27
评测机
分数
100
总耗时
3ms
峰值内存
256.0 KiB