记录详情

Compile Error

foo.cc: In function 'void* m(SeqList&, SeqList&)':
foo.cc:26:47: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   26 |                                 if (obj1.a[i] = obj2.a[j])
      |                                     ~~~~~~~~~~^~~~~~~~~~~
foo.cc:19:21: warning: unused variable 'n' [-Wunused-variable]
   19 |                 int n = obj1.n;
      |                     ^
foo.cc:36:9: warning: no return statement in function returning non-void [-Wreturn-type]
   36 |         }
      |         ^
foo.cc: In function 'int main()':
foo.cc:47:23: error: expected '}' at end of input
   47 |         m(c[0], c[1]);
      |                       ^
foo.cc:39:1: note: to match this '{'
   39 | {
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

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