when i initialize vector loop lie for(int i=0;i<v.size();i++)
it gives compilation error that comparison between signed and unsigned integer.
Comparison between signed and unsigned int
code is like
for(int i=0;i<v.size();i++)
{
cin>>n;
v.push_back(n);
}
Error: comparison between signed and unsigned integer.
Integer type
Vectorv
@abhisek905 hey abhishek can you please tell me what kind of value you will insert into your vector ?