记录详情

Compile Error

/in/foo.cc:12:29: error: 'm' has not been declared
     void FindMinPos(int a[],m);
                             ^
/in/foo.cc:22:34: error: 'm' has not been declared
 void SeqList::FindMinPos(int a[],m)
                                  ^
/in/foo.cc: In member function 'void SeqList::FindMinPos(int*, int)':
/in/foo.cc:27:12: error: 'm' was not declared in this scope
  for(i=0;i<m;i++)
            ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:53:10: error: conflicting declaration 'SeqList a'
  SeqList a;
          ^
/in/foo.cc:40:9: note: previous declaration as 'int a [10000]'
     int a[10000];
         ^
/in/foo.cc:54:4: error: request for member 'FindMinPos' in 'a', which is of non-class type 'int [10000]'
  a.FindMinPos(a,n1);
    ^~~~~~~~~~
/in/foo.cc:55:10: error: conflicting declaration 'SeqList b'
  SeqList b;
          ^
/in/foo.cc:41:6: note: previous declaration as 'int b [10000]'
  int b[10000];
      ^
/in/foo.cc:56:4: error: request for member 'FindMinPos' in 'b', which is of non-class type 'int [10000]'
  b.FindMinPos(b,n2);
    ^~~~~~~~~~

信息

递交者
类型
递交
题目
A9-2 数组中最小正数的下标
比赛
中北数据结构课程赛事二:顺序表类的操作
语言
C++
递交时间
2019-03-10 21:23:56
评测时间
2019-03-10 21:23:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes