foo.cc: In function 'int* m(SeqList&, SeqList&)':
foo.cc:24:24: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
24 | {if (obj1.a[i] = obj2.a[j]){c[k] = obj1.a[i];k++;};}}
| ~~~~~~~~~~^~~~~~~~~~~
foo.cc:25:16: warning: address of local variable 'c' returned [-Wreturn-local-addr]
25 | return c; }
| ^
foo.cc:20:21: note: declared here
20 | int c[100]={0};
| ^
foo.cc:19:21: warning: unused variable 'n' [-Wunused-variable]
19 | int n = obj1.n;
| ^
foo.cc: In function 'int main()':
foo.cc:37:26: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
37 | for (int i = 0;i < sizeof(m(c[0], c[1]));i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务