记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:21:30: warning: left-hand operand of comma expression has no effect [-Wunused-value]
   21 |         for (int i = 0; i < n, i++;) {
      |                              ^
foo.c:22:18: warning: unknown conversion type character ' ' in format [-Wformat=]
   22 |         scanf(" % d", &a[i]);
      |                  ^
foo.c:22:15: warning: too many arguments for format [-Wformat-extra-args]
   22 |         scanf(" % d", &a[i]);
      |               ^~~~~~
foo.c: In function 'FindiMax':
foo.c:12:1: warning: control reaches end of non-void function [-Wreturn-type]
   12 | }
      | ^
In function 'FindiMax',
    inlined from 'main' at foo.c:24:24:
foo.c:3:9: warning: 'a' is used uninitialized [-Wuninitialized]
    3 |     int max = arr[0];
      |         ^~~
foo.c: In function 'main':
foo.c:19:13: note: 'a' declared here
   19 |         int a[10000];
      |             ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 请输入整数n:请输入5个整数;最..., expect 3. 2ms 200.0 KiB
#2 Wrong Answer Read 请输入整数n:请输入10个整数;..., expect 3. 1ms 284.0 KiB
#3 Wrong Answer Read 请输入整数n:请输入8个整数;最..., expect 5. 1ms 284.0 KiB
#4 Wrong Answer Read 请输入整数n:请输入16个整数;..., expect 7. 1ms 204.0 KiB
#5 Wrong Answer Read 请输入整数n:请输入32个整数;..., expect 7. 1ms 284.0 KiB

信息

递交者
类型
递交
题目
A7-3 数组的极值下标函数
比赛
2023年新生赛(第三场)
语言
C
递交时间
2023-09-09 21:28:23
评测时间
2023-09-09 21:28:23
评测机
分数
0
总耗时
9ms
峰值内存
284.0 KiB