| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 76262 | 李雨昊 | 找最大的数 | C++ | Runtime Error | 0 MS | 268 KB | 321 | 2024-06-02 09:35:29 |
#include<iostream> #include<cstdio> #include<cstring> #include<cmath> #include<iomanip> using namespace std; int main() { int a[10]={0},m=0,d; for(int i=1;i<=10;i++){ cin>>a[i]; } for( int i=1;i<=10;i++) { if(a[i]>m){ m = a[i]; d=i; } } cout<<d; return 0; }
*** stack smashing detected ***: ./Main terminated