记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:3:22: warning: unused variable 'k' [-Wunused-variable]
    3 |  int n,a[100000],i,j,k,p,max[100000],maxx;
      |                      ^
foo.c:3:20: warning: unused variable 'j' [-Wunused-variable]
    3 |  int n,a[100000],i,j,k,p,max[100000],maxx;
      |                    ^
foo.c:3:18: warning: unused variable 'i' [-Wunused-variable]
    3 |  int n,a[100000],i,j,k,p,max[100000],maxx;
      |                  ^
foo.c:4:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    4 |  scanf("%d",&n);
      |  ^~~~~~~~~~~~~~
foo.c:6:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    6 |   scanf("%d",&a[m]);
      |   ^~~~~~~~~~~~~~~~~
foo.c:17:6: warning: 'max[0]' may be used uninitialized in this function [-Wmaybe-uninitialized]
   17 |  maxx=max[0];
      |  ~~~~^~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 1.0 MiB
#2 Wrong Answer Read 13, expect 14. 4ms 1.0 MiB
#3 Accepted 4ms 1.0 MiB
#4 Accepted 76ms 1.0 MiB
#5 Accepted 146ms 1.0 MiB

信息

递交者
类型
递交
题目
3-3 炒股发财
比赛
2021(四) 作业第四场:加速赛
语言
C
递交时间
2021-12-09 13:42:58
评测时间
2021-12-09 13:42:58
评测机
分数
80
总耗时
235ms
峰值内存
1.0 MiB