记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:21:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   21 |  scanf("%d %d",&n1,&n2);
      |  ^~~~~
foo.c:21:2: warning: incompatible implicit declaration of built-in function 'scanf'
foo.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int FindiSecondMax(int c[],int n)
foo.c:28:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   28 |  printf("%d ",drd1);
      |  ^~~~~~
foo.c:28:2: warning: incompatible implicit declaration of built-in function 'printf'
foo.c:28:2: note: include '<stdio.h>' or provide a declaration of 'printf'
foo.c: In function 'FindiSecondMax':
foo.c:16:9: warning: 'drd' may be used uninitialized in this function [-Wmaybe-uninitialized]
   16 |  return drd;
      |         ^~~
foo.c:13:14: warning: 't' may be used uninitialized in this function [-Wmaybe-uninitialized]
   13 |   if(max<c[i]&&i!=t)
      |      ~~~~~~~~^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Accepted 1ms 256.0 KiB
#3 Wrong Answer Read 0, expect 3. 1ms 256.0 KiB
#4 Wrong Answer Read 0, expect 2. 1ms 256.0 KiB
#5 Wrong Answer Read 0, expect 2. 1ms 256.0 KiB

信息

递交者
类型
递交
比赛
2022春 C语言课程设计 作业2
语言
C
递交时间
2022-03-22 11:18:57
评测时间
2022-03-22 11:18:57
评测机
分数
40
总耗时
6ms
峰值内存
256.0 KiB