Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
95783 | 黄睿杰 | 找最大的数 | C++ | Compile Error | 0 MS | 0 KB | 190 | 2024-11-02 11:02:09 |
#include<bits/stdc++.h> using namespace std; int main() { int m=0,w; for(int i=1;i<=10;i++){ cin>>a[i]; if(a[i]>m){ w=i; m=a[i]; } } cout<<w; return 0; }
Main.cc: In function 'int main()': Main.cc:6:8: error: 'a' was not declared in this scope cin>>a[i]; ^