Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
2753 莫业祁 19按规则查找数组中的数据 C++ Runtime Error 1999 MS 260 KB 261 2024-01-22 14:07:41

Tests(0/10):


Code:

# include<iostream> using namespace std; int main(){ int n,m,temp=1,ai[1001]; cin>>n; cin>>m; for(int i=1;i=n+1;i++) cin>>ai[i]; for(int i=1;i=m;i++) temp=ai[temp]; cout<<ai[temp]<<" "; return 0; }


Run Info:

Runtime Error:[ERROR] A not allowed system call.
Call ID:275