| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 140066 | 罗锦墨 | 19按规则查找数组中的数据 | C++ | Runtime Error | 0 MS | 268 KB | 227 | 2025-12-13 15:10:20 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,j=1,a[100]; cin>>n>>m; for(int i=1;i<=n;i++){ cin>>a[i]; } for(int i=1;i<=m;i++){ j=a[j]; cout<<j<<" "; } return 0; }
Runtime Error:Segmentation fault