Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
97395 吕毅心 找最大的数 C++ Runtime Error 1 MS 268 KB 309 2024-11-15 16:56:19

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() using namespace std; int main(){ int a[5],i,j,max=0; for(i=0;i<10;i++){ cin>>a[i]; } for(j=0;j<10;j++){ if(a[j]>max){ max=j; } } cout<<a[max]; return 0; }


Run Info:

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