Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6740 詹梓涵 序列变换 C++ Runtime Error 0 MS 264 KB 443 2025-03-15 10:06:32

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a[101],n; cin>>n; for(int i=1;i<=5;i++){ cin>>a[i]; } int t; for(int i=1;i<=n;i++){ t=a[i]; cout<<a[t]<<" "; } return 0; }


Run Info:

Runtime Error:Segmentation fault