Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
100338 杜春雨 序列变换II C++ Compile Error 0 MS 0 KB 319 2024-12-07 16:00:21

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int a[n]; int b[100]={0}; int t1;t2; for(int s=0;s<n;s++){ cin>>a[n]; } for(int i=0;i<n;i++){ t1=a[i]; t2=a[t1-1]; b[i]=a[t2-1]; } for(int i=0;i<n;i++){ cout<<<b[i]<<" "; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:10: error: 't2' was not declared in this scope
   int t1;t2;
          ^
Main.cc:19:10: error: expected primary-expression before '<' token
    cout<<