foo.cc: In member function 'PolyLinkNode<T>& LinkList<T>::operator+(LinkList<T>&)':
foo.cc:284:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
284 | if(newp!=NULL)
| ^~
foo.cc:286:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
286 | return *newhead;
| ^~~~~~
foo.cc: In function 'int main()':
foo.cc:305:11: warning: unused variable 'x' [-Wunused-variable]
305 | int n,nb,x;
| ^
foo.cc: In instantiation of 'PolyLinkNode<T>& LinkList<T>::operator+(LinkList<T>&) [with T = int]':
foo.cc:317:26: required from here
foo.cc:222:28: warning: unused variable 'bnt' [-Wunused-variable]
222 | int t[100],t1[100],cnt=0,bnt=0,Ln=0;
| ^~~
foo.cc: In instantiation of 'PolyLinkNode<T> LinkList<T>::Chong() [with T = int]':
foo.cc:324:32: required from here
foo.cc:173:20: warning: variable 'pre' set but not used [-Wunused-but-set-variable]
173 | PolyLinkNode<T> *pre=NULL;
| ^~~
[Hydro](https://hydro.ac)提供评测服务