记录详情

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:28:10: warning: implicit declaration of function 'find' [-Wimplicit-function-declaration]
  int max=find(a,n,num);
          ^~~~
foo.c:23:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ^~~~~~~~~~~~~~
foo.c:26:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&a[i]);
   ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

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