| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158234 | 袁昊贝 | A+B 输入输出练习IV | C++ | Runtime Error | 1 MS | 268 KB | 254 | 2026-08-20 17:21:18 |
#include <bits/stdc++.h> using namespace std; int main(){ int N,a[N]; while (true){ cin>>N; cin>>a[N]; if (N==0){ break; } a[N]+=a[N+1]; } cout<<a[N]<<endl; return 0; }
Runtime Error:Segmentation fault