| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 130137 | 王晏林 | 找最大的数 | C++ | Compile Error | 0 MS | 0 KB | 236 | 2025-09-07 17:19:12 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[10],sum=0,w; for(int i=1;i<=10;i++){ cin>>a[i]; } for(int i=1;i<=10;i++){ if(max<a[i]){ max=a[i]; w=i; } cout<<w; } return 0; }
Main.cc: In function 'int main()': Main.cc:10:13: error: the value of 'a' is not usable in a constant expression if(max