记录详情

Runtime Error

foo.c: In function 'main':
foo.c:19:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   19 |     if (n >= 10000)
      |     ^~
foo.c:21:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   21 |         return -1;
      |         ^~~~~~
foo.c:15:9: warning: 'n' is used uninitialized [-Wuninitialized]
   15 |         int a[n];
      |         ^~~
foo.c:14:9: note: 'n' declared here
   14 |     int n;
      |         ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Your program returned 255. 1ms 284.0 KiB
#2 Runtime Error Your program returned 255. 2ms 284.0 KiB
#3 Runtime Error Your program returned 255. 2ms 284.0 KiB
#4 Runtime Error Your program returned 255. 1ms 284.0 KiB
#5 Runtime Error Your program returned 255. 2ms 284.0 KiB

信息

递交者
类型
递交
题目
A7-2 数组的极值函数
比赛
2023 程序设计与基础(单个的数组)
语言
C
递交时间
2023-11-21 14:42:29
评测时间
2023-11-21 14:42:29
评测机
分数
0
总耗时
9ms
峰值内存
284.0 KiB