foo.cc: In function 'Listnode* Insert(int*, int)':
foo.cc:12:14: error: cannot convert 'Listnode' to 'Listnode*' in initialization
Listnode *p=h;
^
foo.cc:16:13: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses]
while(10^m<a[i])
~^~~~~
foo.cc:22:12: error: invalid types 'char[int]' for array subscript
while(b[j]!='\0')
^
foo.cc:24:10: error: invalid types 'char[int]' for array subscript
if(b[j]!=b[m-1-j]
^
foo.cc:24:20: error: invalid types 'char[int]' for array subscript
if(b[j]!=b[m-1-j]
^
foo.cc:25:7: error: expected ')' before '{' token
{
^
foo.cc:28:3: error: expected primary-expression before '}' token
}
^
foo.cc:32:11: error: invalid operands of types 'Listnode*' and '<unresolved overloaded function type>' to binary 'operator-'
p=p-next;
~^~~~~
foo.cc:35:14: error: cannot convert 'Listnode' to 'Listnode*' in return
return h;
^
[Hydro](https://hydro.ac)提供评测服务