| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 144521 | 岑思烁 | 最大值与最小值的差 | C++ | Compile Error | 0 MS | 0 KB | 321 | 2026-01-23 20:48:54 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[10000],m,n,b; cin>>a[10000]; m=a[10000]; n=1; for(int i = 2;i<=n;i++){ cin>>a[i]; if(a[i]>m){ m=a[i]; n=i; } } for(int i = 2;i<=b;i++){ cin>>a[i]; if(a[i]<m){ m=a[i]; b=i; } cout<<n-i; return 0; }
Main.cc: In function 'int main()': Main.cc:23:1: error: expected '}' at end of input } ^