Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
117170 施宸雨 求最大值 C++ Runtime Error 1 MS 268 KB 256 2025-04-13 20:47:28

Tests(0/1):


Code:

#include <iostream> using namespace std; int main(){ int n[10]; for (int i = 1;i <= 10;i++){ cin>>n[i]; } int max = 0; for (int i = 1;i <= 10;i++){ if (n[i] > max){ max = n[i]; } } cout<<max; return 0; }


Run Info:

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