C++: too few arguments in function call

c

i have problem in this code. when i call functions. compiler show this error:

"too few arguments in function call"
……………………………………………………

bool check_matrix(int x, int y){
    if (x<ROWS || y<COLUMNS)
        return true;
    return false;

    }

bool compute_duplicate(int x, int y, int array[], int array_length){
    for (int i=0; i< array_length; i++)
    {
        if(array[i]==compute_address(x,y))
            return false;
    }

    return true;
    }
////////////////////////////////////

for (int i=0; i<array_length; i++){
    if ((check_matrix(x,(y+1))==true) && compute_duplicate((x,(y+1), array, array_length)==false)) {
        array[i]= compute_address(x,(y+1));
        y++;
        d++;
        i++;
    }

    if ((check_matrix((x+1),y)==true) && compute_duplicate((x+1),y, array, array_length)==false)) {
        array[i]=compute_address((x+1),y);
        x++;
        d++;
        i++;
    }
    array_length=d;
}

Best Answer

The following function call has a misplaced bracket

compute_duplicate((x,(y+1), array, array_length)==false)

it should be

(compute_duplicate(x,(y+1), array, array_length)==false)

the same error exists in two places within your loop.