记录详情

Compile Error

/in/foo.cc: In function 'int* m(SeqList&, SeqList&)':
/in/foo.cc:26:30: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
     if (obj1.a[i] = obj2.a[j])
                              ^
/in/foo.cc:19:7: warning: unused variable 'n' [-Wunused-variable]
   int n = obj1.n;
       ^
/in/foo.cc:36:2: warning: no return statement in function returning non-void [-Wreturn-type]
  }
  ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:47:15: error: expected '}' at end of input
  m(c[0], c[1]);
               ^

信息

递交者
类型
自测
题目
P1015 OO3-2 无序顺序表类的集合运算
语言
C++
递交时间
2023-05-14 20:05:02
评测时间
2023-05-14 20:05:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes