比较两个vector的值是否相等
#include<iostream>#include<vector>using namespace std;int main(){ const vector<int>::size_type vect_size = 6; vector<int> ivec1[vect_size]; vector<int> ivec2[vect_size];vector<int>::size_type ix = 0; //局部作用域 int value = 0; cout<<"Enter "<<vect_size<<" of vect1:"<<endl; for(ix = 0; ix != vect_size; ++ix){ cin>>value; ivec1.push_back(value); } cout<<"Enter "<<vect_size<<" of vect2:"<<endl; for(ix = 0; ix != vect_size; ++ix){ cin>>value; ivec2.push_back(value); } for(ix = 0; ix != vect_size; ++ix){ if(ivec1[ix]!=ivec1[ix]){ cout<<"vector 1 is not equal to vector2"<<endl; return 0; } } cout<<"vector 1 is equal to vector2"<<endl; return 0;}我想比较ivec1和ivec2里的值是否相等,假设都输入6个值,但是编译的错误是:--------------------Configuration: succ - Win32 Debug--------------------Compiling...succful.cppD:尀C++尀C++_wanyin940尀succ尀succful.cpp(17) : error C2228: left of ✀.push_back✀ must have class/struct/union typeD:尀C++尀C++_wanyin940尀succ尀succful.cpp(22) : error C2228: left of ✀.push_back✀ must have class/struct/union type执行 cl.exe 时出错.succ.exe - 1 error(s), 0 warning(s)请问是什么问题吗