| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 120290 | 张铖睿 | 最大值与最小值的差 | C++ | Compile Error | 0 MS | 0 KB | 285 | 2025-05-25 09:45:09 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[10001],max,min,m; cin>>m; for(int i=0;i<=m;i++) { cin>>a[i]; if(i==0) { max=a[i]; min=a[i]; } if(a[i]>max) max=a[i]; if(a[i]>min) min=a[i]; } cout<<max-mim; return 0; }
Main.cc: In function 'int main()': Main.cc:19:12: error: 'mim' was not declared in this scope cout<