int SequentialSearch(const vector<int> &randnumvect, int search)
{
int i;
for(i=0;i<randnumvect.size();i++)
{
if(search == randnumvect[i])
return i;
}
return –1;
}
I get the error after return -1;
There are actually four errors, all after the same line:
Two of them say: "expected primary-expression before 'OTHER' token"
The other two say: "expected ';' before 'OTHER' token"