记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:12:7: error: 'max' redeclared as different kind of symbol
  void max(int a[],int i);
       ^~~
/in/foo.c:11:6: note: previous definition of 'max' was here
  int max=a[4];
      ^~~
/in/foo.c: In function 'max':
/in/foo.c:21:6: error: lvalue required as left operand of assignment
   max=a[i];
      ^
/in/foo.c:25:10: warning: comparison between pointer and integer
   if(a[i]>max)
          ^
/in/foo.c:26:6: error: lvalue required as left operand of assignment
   max=a[i];
      ^
/in/foo.c:30:2: warning: implicit declaration of function 'pirntf' [-Wimplicit-function-declaration]
  pirntf("%d",max);
  ^~~~~~

信息

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