int m,n;
int i=0,j=0;
void searchedAlgorithm(int arr[m][n],int searchedElement)
{
if (arr[i][j] == searchedElement)//üstten arama
{
printf("%d,%d",i,j);
}
else if (arr[m-i][n-j] == searchedElement)//alttan arama
{
printf("%d,%d",m-i,n-j);
}
else if(j==n)//satır bittiğinde
{
j=0;
i+=1;
}
else if(j==n && m==i)//tarama bittiğinde
{
printf("Does not exist");
}
else
{
j+=1;
searchedAlgorithm(arr[m][n],searchedElement);
}
}
errorrda bu No matching function for call to 'searchedAlgorithm