I've looked at other posts regarding to this problem but can't really seem to apply it to my situation particularly this post: Passing a 2D array to a C++ function
int compute(int size, int graph[][size], int u, int v)
and get the following error:
candidate function not viable: no known conversion from
'int [size][size]' to 'int (*)[size]' for 2nd argument
int compute(int size, int graph[][size], int u, int v)
When I call this function in my main method I do it the following way:
compute(size,matrix,0,size-1)
Any suggestions as what my problem is?