Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
117942 殷佳雨萱 计算鞍点 C++ Compile Error 0 MS 0 KB 652 2025-04-20 21:05:40

Tests(0/0):


Code:

#include<iostream> using namespace std; int a[5][5]; int main(){ int i=0,j=0,n=0,m=0,max=0,min=0,flag=0; for(i=0;i<5;i++){ for(j=0;j<5;j++) cin>>a[i][j]; } for(i=0;i<5;i++){ max=0; min=10000; for(j=0;j<5;j++){ if(max<arr[i][j]){ max=arr[i][j]; n=j; } } for(j=0;j<5;j++){ if(min>a[j][n]){ min=a[j][n]; m=j; } } if(max==min)break; } if(max==min) cout<<m+1<<" "<<n+1<<" "<<max<<endl; else cout<<"not found"; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:14:19: error: 'arr' was not declared in this scope
            if(max