| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 61950 | 靳鸿屹 | 二维数组的最大值与最小值 | C++ | Compile Error | 0 MS | 0 KB | 432 | 2023-12-16 14:57:41 |
#include <iostream> using namespace std; int main() { int n,r=0; cin>>n; int a[n][n]; for(int d=0;n>d;d++) for(int i=0;n>d;i++) { cin>>a[n][n]; } int max=0,min=10000; while(a[n][n]>r) { if(a[n]n]>max) { a[n][n]=max; } if(a[n][n]<min) { a[n][n]=min; } } cout<<max<<min;
Main.cc: In function 'int main()':
Main.cc:16:16: error: expected ')' before 'n'
if(a[n]n]>max)
^
Main.cc:16:17: error: expected primary-expression before ']' token
if(a[n]n]>max)
^
Main.cc:25:19: error: expected '}' at end of input
cout<