Can you try below & see if the code works with below change.
Use a temp int variable to store data of the array element & use it in the if condition.
The compiler is complaining because ,I think the definition of A is float A[][].
Implying individual elements are float & using the modulo operator expects both int args.
//...existing code here ie for loops
int temp = A[i][j];
if(temp%2==0){
n++;
}
//...existing code here
if(n==3){
//...
//...
}
if(n==5){
//...
//...
}
//...existing code here