error: request for member '*' in '*', which is of non-class type '*'

今天碰到这个问题,在这里插入图片描述

问题是vector变量名和for循环里面定义的变量名重复了,循环里面没有调用到外面的vector,而是调用了int a,

猜你喜欢

转载自blog.csdn.net/qq_43241311/article/details/85084868