Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
119685 袁龙浩 找最大的数 C++ Runtime Error 0 MS 272 KB 438 2025-05-18 14:51:22

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a[10],n=0,max=0; for(int i=1;i<=10;i++){ cin>>a[i]; if(a[i]>n){ max=a[i]; n=i; } } cout<<n; return 0; }


Run Info:

*** stack smashing detected ***: ./Main terminated