hello my two test cases are failing …please tell my mistake
#include
using namespace std;
void staircase(int a[][100] , int n , int m){
int i=0,j=m-1;
int x;
cin>>x;
bool isnopresent = false;
while(i=0){
if(a[i][j]==x){
isnopresent = true;
cout<<“1”;
break;
}
else if(a[i][j] < x){
i++;
}
else if(a[i][j] > x){
j–;
}
}
if(isnopresent == false){
cout<<“0”;
}
}
int main() {
int n,m;
cin>>n>>m;
int a[100][100];
staircase(a , n , m);
return 0;
}