记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:30:26: error: expected primary-expression before ']' token
      max[imax++]=MAX(n,a[]);
                          ^
/in/foo.cc:31:26: error: expected primary-expression before ']' token
      min[imin++]=MIN(n,a[]);
                          ^
/in/foo.cc:37:16: error: expected primary-expression before ']' token
     OUTPUT(max[] , imax , imin[] , imin);
                ^
/in/foo.cc:37:32: error: expected primary-expression before ']' token
     OUTPUT(max[] , imax , imin[] , imin);
                                ^
/in/foo.cc: At global scope:
/in/foo.cc:62:47: error: conflicting declaration 'int imin'
 void OUTPUT(int max[],int imax,int imin[],int imin)
                                               ^~~~
/in/foo.cc:62:41: note: previous declaration as 'int* imin'
 void OUTPUT(int max[],int imax,int imin[],int imin)
                                         ^
/in/foo.cc: In function 'void OUTPUT(int*, int, int*)':
/in/foo.cc:68:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
     for(int i=1;i<imin;i++)
                   ^~~~
/in/foo.cc:70:17: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
      cout<<min[i];
                 ^

信息

递交者
类型
递交
题目
P1034 s-0-5找数
比赛
2021苏青奥赛集训营(春季结业赛)
语言
C++
递交时间
2021-06-06 12:39:19
评测时间
2021-06-06 12:39:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes