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 'void setinter(node*, node*)':
foo.cc:82:15: warning: unused variable 'anshead' [-Wunused-variable]
82 | node* anshead=NULL;node* p1=head4;node* p2=head5;
| ^~~~~~~
foo.cc: In function 'int main()':
foo.cc:102:14: warning: statement has no effect [-Wunused-value]
102 | for (p1; p1 < a1 + n1; p1++)
| ^~
foo.cc:104:14: warning: statement has no effect [-Wunused-value]
104 | for (p2; p2 < a2 + n2; p2++)
| ^~
foo.cc:106:14: warning: statement has no effect [-Wunused-value]
106 | for (p3; p3 < a3 + n3; p3++)
| ^~
[Hydro](https://hydro.ac)提供评测服务