Kartik bhaiya and celebrity problem

what is wrong in my code 1 testcase fails

#include
using namespace std;

int main() {
int n;
cin>>n;
int a[100][100];
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
cin>>a[i][j];
}
}
int i,j;
bool flag=1;
for( i=0;i<n;i++){
for( j=0;j<n;j++){
if(a[i][j]==1){
break;
}

	}
	if(j==n){
		cout<<i<<endl;
		flag=0;
	}

	
}
if(flag){
	cout<<"No Celebrity"<<endl;
}


return 0;

}

kindly share the link of code
so that i can run and test your code

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.