记录详情

Compile Error

foo.c: In function 'Findmin':
foo.c:6:33: error: expected ';' before 'printf'
    6 |                         min=a[i]
      |                                 ^
      |                                 ;
    7 | 
    8 |     printf("%d",a[i]);
      |     ~~~~~~                       
foo.c: In function 'main':
foo.c:18:18: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
   18 |          scanf("%d",a[i]);
      |                 ~^  ~~~~
      |                  |   |
      |                  |   int
      |                  int *
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
A7-2 数组的极值函数
语言
C
递交时间
2023-11-21 13:56:55
评测时间
2023-11-21 13:56:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes