Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
112634 吴诗涵 计算鞍点 C++ Compile Error 0 MS 0 KB 777 2025-03-09 19:30:26

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int i=0,j=0,n=0,m=0,max=0,min=0,flag=0; int arr[5][5]; for(i=0;i<5;i++){ for(j=0;j<5;j++){ cin>>arr[i][j;] } } for(i=0;i<5;i++){ max=0; min=1000; 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>arr[j][n]){ min=arr[j][n]; m=j; } } if(max==min)break; if(max==min){ cout<<m+1<<" "<<n+1<<" "<<max<<endl; } else{ cout<<"not found"<<endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:12:22: error: expected ']' before ';' token
         cin>>arr[i][j;]
                      ^
Main.cc:12:23: error: expected primary-expression before ']' token
         cin>>arr[i][j;]
                       ^
Main.cc:31:13: error: break statement not within loop or switch
 if(max==min)break;
             ^
Main.cc:8:33: warning: unused variable 'flag' [-Wunused-variable]
 int i=0,j=0,n=0,m=0,max=0,min=0,flag=0;
                                 ^