| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 68865 | 梁敖铭 | 找最大的数 | C++ | Compile Error | 0 MS | 0 KB | 221 | 2024-03-26 20:29:49 |
#include<iostream> using namespace std; int main(){ int z[10]; int max=0; for(int i=0;i<10;++i){ cin>>z[i]; if(z[i]>=max){ max=z[i]; maxi=i; } } cout<<max; return 0; }
Main.cc: In function 'int main()':
Main.cc:11:9: error: 'maxi' was not declared in this scope
maxi=i;
^