记录详情

Compile Error

foo.c: In function 'FindMin':
foo.c:5:9: warning: implicit declaration of function 'fot' [-Wimplicit-function-declaration]
    5 |         fot(int i=0;i<n;i++)
      |         ^~~
foo.c:5:13: error: expected expression before 'int'
    5 |         fot(int i=0;i<n;i++)
      |             ^~~
foo.c:5:29: error: expected ';' before '{' token
    5 |         fot(int i=0;i<n;i++)
      |                             ^
      |                             ;
    6 |         {
      |         ~                    
foo.c:4:13: warning: unused variable 'min' [-Wunused-variable]
    4 |         int min=a[0];
      |             ^~~
foo.c: In function 'main':
foo.c:17:13: error: expected expression before 'int'
   17 |         fot(int i=0;i<n;i++)
      |             ^~~
foo.c:17:29: error: expected ';' before '{' token
   17 |         fot(int i=0;i<n;i++)
      |                             ^
      |                             ;
   18 |         {
      |         ~                    
foo.c:22:21: error: 'min' undeclared (first use in this function); did you mean 'main'?
   22 |         printf("%d",min)
      |                     ^~~
      |                     main
foo.c:22:21: note: each undeclared identifier is reported only once for each function it appears in
foo.c:22:25: error: expected ';' before 'return'
   22 |         printf("%d",min)
      |                         ^
      |                         ;
   23 |         return 0;
      |         ~~~~~~           
foo.c:15:13: warning: unused variable 'a' [-Wunused-variable]
   15 |         int a[10000];
      |             ^
foo.c: In function 'FindMin':
foo.c:11:9: warning: control reaches end of non-void function [-Wreturn-type]
   11 |         }
      |         ^
[Hydro](https://hydro.ac)提供评测服务

信息

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