| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 76494 | 陈俊洁 | 最大值与最小值的差 | C++ | Compile Error | 0 MS | 0 KB | 144 | 2024-06-02 14:57:36 |
#include <bits/stdc++.h> using namespace std; int main(){ int a[m],max; for(i=1;i<=m;i++){ if(max<i){ max=i; } cout<<a[max]; } }
Main.cc: In function 'int main()':
Main.cc:4:7: error: 'm' was not declared in this scope
int a[m],max;
^
Main.cc:5:5: error: 'i' was not declared in this scope
for(i=1;i<=m;i++){
^
Main.cc:9:8: error: 'a' was not declared in this scope
cout<