我是靠谱客的博主 健忘皮皮虾,这篇文章主要介绍【bug01】error: no match for ‘operator=‘ (operand types are ‘std::vector<int>‘ and ‘int‘)|,现在分享给大家,希望可以做个参考。
检查[]和()是否弄混了
//创建100个vector数组 应该用vector数组给v赋值
vector<int> v[100];
//创建一个有100个int元素的vector数组
vector<int> v(100);
参考链接:https://stackoverflow.com/questions/44455669/no-match-for-operator-operand-type-are-stdvectorint-and-int
最后
以上就是健忘皮皮虾最近收集整理的关于【bug01】error: no match for ‘operator=‘ (operand types are ‘std::vector<int>‘ and ‘int‘)|的全部内容,更多相关【bug01】error:内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复