记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:6:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    6 |   scanf("%d,%d\n",&n1,&n2);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~
foo.c:9:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    9 |   scanf("%d\n",&a[i]);
      |   ^~~~~~~~~~~~~~~~~~~
foo.c:13:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   13 |   scanf("%d\n",&a[j]);
      |   ^~~~~~~~~~~~~~~~~~~
foo.c: In function 'FindMax':
foo.c:21:12: warning: 'n' is used uninitialized in this function [-Wuninitialized]
   21 | for(i=0;i<n-1;i++)
      |           ~^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Standard answer longer than user output. 1ms 256.0 KiB
#2 Wrong Answer Standard answer longer than user output. 1ms 384.0 KiB
#3 Wrong Answer Standard answer longer than user output. 1ms 256.0 KiB
#4 Wrong Answer Standard answer longer than user output. 3ms 256.0 KiB
#5 Wrong Answer Read 5, expect 8. 1ms 384.0 KiB

信息

递交者
类型
递交
比赛
中北 计算机2021级专业修读指导(4)
语言
C
递交时间
2021-12-23 21:45:10
评测时间
2021-12-23 21:45:10
评测机
分数
0
总耗时
9ms
峰值内存
384.0 KiB