It's showing error! while passsng an array

#include
using namespace std;
void get2DArray(int array[][4],int n)
{
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
cin>>array[i][j];
}
}
}
void search(int array[][4],int n,int key)
{ static int col=n;
for(int i=0;i<n;i++)
{
if(col==-1)
{
cout<<“no such element is present”;
break;
}
else if(key==array[i][col])
{
cout<<key<<“lies in”<<i<<" row"<<col<<" column";
}
else if(key<array[i][col])
{
col–;
}
}
}
int main()
{
int n;
cin>>n;

int array[n][n]={0};
get2DArray(array,n);

int key;
cin>>key;

search(array,n,key);



return 0;

}

Hello @ayushsakure could you please share your code by saving it on ide.codingblocks.com .
otherwise when you share your code like this there some other things are automatically removed from the code.

@ayushsakure check this;

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.