Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
117171 | 施宸雨 | 求最大值 | C++ | Runtime Error | 0 MS | 272 KB | 256 | 2025-04-13 20:48:00 |
#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; }
*** stack smashing detected ***: ./Main terminated