Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
108128 朱彦宇 22兔子问题 C++ Runtime Error 0 MS 268 KB 210 2025-01-19 14:39:37

Tests(0/10):


Code:

#include<bits/stdc++.h> 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