Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
94283 陈铎文 二维数组最大值 C++ Runtime Error 1 MS 272 KB 298 2024-10-20 11:02:36

Tests(0/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a[3][4],amax=-200; for(int i=1;i<=3;i++){ for(int j=1;j<=4;j++){ cin>>a[i][j]; } } for(int i=1;i<=3;i++){ for(int j=1;j<=4;j++){ if(a[i][j]>amax){ amax=a[i][j]; } } } cout<<amax; return 0; }


Run Info:

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