记录详情

Compile Error

foo.c:5:31: error: expected ';', ',' or ')' before '=' token
 int find(int s[],int n,int num=-9999)
                               ^
foo.c: In function 'main':
foo.c:22:8: error: expected identifier or '(' before 'int'
  int n,int i;
        ^~~
foo.c:25:6: error: 'i' undeclared (first use in this function)
  for(i=0;i<n;i++)
      ^
foo.c:25:6: note: each undeclared identifier is reported only once for each function it appears in
foo.c:28:10: warning: implicit declaration of function 'find' [-Wimplicit-function-declaration]
  int max=find(a,n);
          ^~~~
foo.c:23:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1019 递归Max
语言
C
递交时间
2021-11-18 21:26:22
评测时间
2021-11-18 21:26:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes