int arr[5][5]={0};
int max[5]={0};
for(int i=0;i<5;i++){
for(int j=0;j<5;j++){
scanf("%d",&arr[i][j]);
}
max[i]=getMax(arr[i],5);
}
for(int j=0;j<5;j++){
printf("%d ",max[j]);
}
}
int getMax(int *max,int n){
int temp=max[0];
for(int i=1;i<n;i++){
if(temp<max[i]){
temp=max[i];
}
}
return temp;
}