Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
130669 周民苡 序列变换II C++ Compile Error 0 MS 0 KB 216 2025-09-14 16:21:19

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:3: error: expected primary-expression before 'int'
  (int i=0;i