Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155695 胡富航 序列变换II C++ Compile Error 0 MS 0 KB 214 2026-06-12 20:21:40

Tests(0/0):


Code:

#include<iostream> using namespace std int main(); { int n,a[101]; cin>>n; for(int i=1;i<=n;i++) { cin>>a[i]; } for(int i=1;i<=n;i++) { cout<<a[a[a[i]]]<<(i<n?" ":"\n"); } return 0; }


Run Info:

Main.cc:3:1: error: expected ';' before 'int'
 int main();
 ^
Main.cc:4:1: error: expected unqualified-id before '{' token
 {
 ^