Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
139489 田祥江 22兔子问题 C++ Runtime Error 0 MS 272 KB 208 2025-12-07 10:21:10

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