记录详情

Compile Error

/in/foo.cc:11:1: error: expected ';' after class definition
 }
 ^
/in/foo.cc: In member function 'void Seqlist::search()':
/in/foo.cc:25:16: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   for(int w=0;w<n<w++)
               ~^~
/in/foo.cc:25:20: warning: operation on 'w' may be undefined [-Wsequence-point]
   for(int w=0;w<n<w++)
                   ~^~
/in/foo.cc:25:22: error: expected ';' before ')' token
   for(int w=0;w<n<w++)
                      ^
/in/foo.cc:27:17: error: expected ')' before ';' token
    if(a[k]==b[w];
                 ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:34:6: warning: unused variable 'm' [-Wunused-variable]
  int m,n;
      ^
/in/foo.cc:34:8: warning: unused variable 'n' [-Wunused-variable]
  int m,n;
        ^
/in/foo.cc:35:6: warning: unused variable 'a' [-Wunused-variable]
  int a[100];
      ^
/in/foo.cc:36:6: warning: unused variable 'b' [-Wunused-variable]
  int b[100];
      ^

信息

递交者
类型
自测
题目
P1015 OO3-2 无序顺序表类的集合运算
语言
C++
递交时间
2021-06-22 11:38:16
评测时间
2021-06-22 11:38:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes