#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) { int a[][] = {};
for(int i = ;i < ;i++){
for (int j = ;j < ; j++){
a[i][j] = arc4random()%( - + ) + ;
printf("%d ",a[i][j]);
}
printf("\n");
}
BOOL flag = true; for(int i = ;i < ;i++){
int max = a[i][];
int maxj = ;
for (int j = ;j < ;j++){
if (max < a[i][j]){
max = a[i][j];
maxj = j;
}
for(int k = ;k < ;k++){
if(max > a[k][maxj]){
flag = false;
}
}
if(flag == true){
printf("鞍点为%d,坐标(%d,%d)\n",max,i,maxj);
}
} }
if(flag == false){
printf("没有鞍点存在!\n");
}
return ;
}