foo.cc: In function 'int FindMaxNeg(Node*)':
foo.cc:25:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
25 | else
| ^~~~
foo.cc:35:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
35 | Node *cur=head;
| ^~~~
foo.cc: In function 'int main()':
foo.cc:80:11: warning: statement has no effect [-Wunused-value]
80 | for ( p1;p1<a1+n1;p1++) {cin>>*p1;}
| ^~
foo.cc:82:11: warning: statement has no effect [-Wunused-value]
82 | for ( p2;p2<a2+n2;p2++) {cin>>*p2;}
| ^~
foo.cc: In function 'int FindMaxNeg(Node*)':
foo.cc:42:12: warning: 'Max_data' may be used uninitialized [-Wmaybe-uninitialized]
42 | return Max_data;
| ^~~~~~~~
foo.cc:22:13: note: 'Max_data' was declared here
22 | int Max_data;
| ^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务