Why the error? please help
hey @gagz23,there are multiple errors in your code.
Firstly you should do
if(arr[start]==key){
v.push_back(start);
}
instead of
if(v[start]==key)
{
v.push_back(start);
}
and your for loop for vector is not correct i would suggest you to look this code for reference and see your mistakes
Happy to help 