为什么错了啊啊啊!

P1164 小A点菜

@[璀璨天狼](/space/show?uid=144520) `if(q->x->*i==m) ans++;`应该改成`if(q->x->i==m) ans++;`,`q->bx->*i=(p->i)+1;`应该改成`q->bx->i=(p->i)+1;`
by andyli @ 2018-11-24 20:14:20


谢大佬,可上面显示: /tmp/tmp10uoc8hi/src:11:9: 错误:cannot convert ‘node’ to ‘node*’ in initialization node* p=root; ^~~~
by 御坂13558号 @ 2018-11-24 20:55:55


它说: /tmp/tmp10uoc8hi/src:11:9: 错误:cannot convert ‘node’ to ‘node*’ in initialization node* p=root; ^~~~
by 御坂13558号 @ 2018-11-24 20:57:06


|