forbids comparison between pointer and intger怎么办

img

你把代码发出来,看这点截图怎么帮你修改。

num是数组?
把数据结构定义贴出来看看

em[i].num是指针,n是int类型,两者不能用==判断