0

for each loop i'm trying to pass a single row of a vector v as a function argument but not able to do it correctly

    vector< vector<int> >v;
    for(int i=0;i<n;i++)
    {
        vector<int>rows;
        for(int j=0;j<size;j++)
        {
            cin>>value;
            rows.push_back(value);
        }
        v.push_back(rows);
    }
    for(int i=n-2;i>=0;i--)
    {  
        int s=search(0,size-1,v[i],max);
    }
4

0 回答 0