记录详情

Runtime Error

foo.cc: In function 'int* m(SeqList&, SeqList&)':
foo.cc:21:24: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   21 |         {if (obj1.a[i] = obj2.a[j]){*(c+k) = obj1.a[i];k++;};}}
      |              ~~~~~~~~~~^~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:34:26: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
   34 |         for (int i = 0;i < sizeof(m(c[0], c[1]));i++)
      |                        ~~^~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In constructor 'SeqList::SeqList(int, int*)':
foo.cc:12:9: warning: '*this.SeqList::n' is used uninitialized [-Wuninitialized]
   12 |         {
      |         ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Aborted 3ms 412.0 KiB

信息

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