Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
2618 莫业祁 19按规则查找数组中的数据 C++ Runtime Error 1994 MS 260 KB 251 2024-01-20 12:03:21

Tests(0/10):


Code:

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


Run Info:

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