记录详情

Compile Error

/in/foo.c:2:27: error: conflicting types for 'a'
 void seperate(int a[],int a)
                           ^
/in/foo.c:2:19: note: previous definition of 'a' was here
 void seperate(int a[],int a)
                   ^
/in/foo.c: In function 'seperate':
/in/foo.c:3:16: error: 'i' undeclared (first use in this function)
 {  for(int j=0;i%10>0;i=/10,j++)
                ^
/in/foo.c:3:16: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:3:25: error: expected expression before '/' token
 {  for(int j=0;i%10>0;i=/10,j++)
                         ^
/in/foo.c:4:6: error: subscripted value is neither array nor pointer nor vector
     a[j]=i%10;
      ^
/in/foo.c:3:12: warning: variable 'j' set but not used [-Wunused-but-set-variable]
 {  for(int j=0;i%10>0;i=/10,j++)
            ^
/in/foo.c: In function 'max':
/in/foo.c:13:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/foo.c: In function 'min':
/in/foo.c:19:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
自测
题目
5-7 玩整数
语言
C
递交时间
2023-11-28 16:06:49
评测时间
2023-11-28 16:06:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes