Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
109727 陈治宸 22兔子问题 C++ Runtime Error 0 MS 268 KB 209 2025-02-10 20:53:40

Tests(0/10):


Code:

#include<iostream> using namespace std; int main() { int n;int a[n], c, h = 0; cin >> c; for (int i = 1; i <= c; i++) { cin >> a[i]; h += a[i]; } cout<<h*4<<" "<<h*2; return 0; }


Run Info:

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