foo.cc: In function 'node* searchremove(node*, node*, int)':
foo.cc:44:14: warning: statement has no effect [-Wunused-value]
44 | for (srp; srp != NULL;presrp=srp,srp = srp->next)
| ^~~
foo.cc:41:13: warning: unused variable 's' [-Wunused-variable]
41 | int s = 0;
| ^
foo.cc: In function 'int main()':
foo.cc:87:14: warning: statement has no effect [-Wunused-value]
87 | for (p1; p1 < a1 + n1; p1++)
| ^~
foo.cc:89:14: warning: statement has no effect [-Wunused-value]
89 | for (p2; p2 < a2 + n2; p2++)
| ^~
foo.cc:91:14: warning: statement has no effect [-Wunused-value]
91 | for (p3; p3 < a3 + n3; p3++)
| ^~
foo.cc:93:15: warning: unused variable 'head1' [-Wunused-variable]
93 | node* head1 = ordercreate(a1, n1); node* head2 = ordercreate(a2, n2); node* head3 = ordercreate(a3, n3);
| ^~~~~
[Hydro](https://hydro.ac)提供评测服务