Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151419 曾钰涵 序列变换 C++ Compile Error 0 MS 0 KB 262 2026-04-12 12:22:17

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int n,a[102]={},t; cin>>n; for(int i=1;i<=n;i++)cin>>a[i]; for(int i=1;i<=n;i++){ t=a[i]; if(i==n)cout<<a[t]<<endl; else cout<<a[t]<<''; } return 0; }


Run Info:

Main.cc:10:26: error: empty character constant
         else cout<