Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
127358 李杺隆 二维数组最大值 C++ Runtime Error 1 MS 272 KB 348 2025-07-27 15:26:49

Tests(0/1):


Code:

# include<iostream> using namespace std; int main(){ int a[3][4],n=0,x=0; for(int i=1;i<=3;i++) for(int j=1;j<=4;j++) cin>>a[j][i]; n=a[1][1]; for(int i=1;i<=3;i++) for(int j=1;j<=4;j++) { if(a[i][j]>n) n=a[i][j]; } cout<<n; return 0; }


Run Info:

*** stack smashing detected ***: ./Main terminated