foo.cc: In function 'int* m(SeqList&, SeqList&)':
foo.cc:22:24: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
22 | {if (obj1.a[i] = obj2.a[j]){*(c+k) = obj1.a[i];k++;};}}
| ~~~~~~~~~~^~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:35:26: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
35 | 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)提供评测服务