dimanche 29 janvier 2017

Assigning to 'int *' from incompatible type 'value_type' (aka 'std::__1::vector

Does anyone know how to call the vector pointer so that it can be assigned to an integer? Following is the code:

void floodFillwithColor(vector<vector<int>>* M, int x, int y, int newC){

    int* prevC = M[x][y];
    int* newCPtr = &newC;
    floodFillUtil(M, x, y, prevC, newCPtr);
};

Aucun commentaire:

Enregistrer un commentaire