| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 122315 | 谢佳辰 | 序列变换II | C++ | Compile Error | 0 MS | 0 KB | 6600 | 2025-06-15 14:31:35 |
#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; int t,n; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ t=a[i]; if(i==n-1){ cout<<a[t-1]<<endl; }else{ cout<<a[t-1]<<" "; } } }
Main.cc:19:2: error: stray '#' in program
}#include
^
Main.cc:37:2: error: stray '#' in program
}#include
^
Main.cc:55:2: error: stray '#' in program
}#include
^
Main.cc:73:2: error: stray '#' in program
}#include
^
Main.cc:91:2: error: stray '#' in program
}#include
^
Main.cc:109:2: error: stray '#' in program
}#include
^
Main.cc:127:2: error: stray '#' in program
}#include
^
Main.cc:145:2: error: stray '#' in program
}#include
^
Main.cc:163:2: error: stray '#' in program
}#include
^
Main.cc:181:2: error: stray '#' in program
}#include
^
Main.cc:199:2: error: stray '#' in program
}#include
^
Main.cc:217:2: error: stray '#' in program
}#include
^
Main.cc:235:2: error: stray '#' in program
}#include
^
Main.cc:253:2: error: stray '#' in program
}#include
^
Main.cc:271:2: error: stray '#' in program
}#include
^
Main.cc:289:2: error: stray '#' in program
}#include
^
Main.cc:307:2: error: stray '#' in program
}#include
^
Main.cc:325:2: error: stray '#' in program
}#include
^
Main.cc:343:2: error: stray '#' in program
}#include
^
Main.cc:19:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:22:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:37:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:40:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:55:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:58:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:73:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:76:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:91:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:94:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:109:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:112:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:127:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:130:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:145:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:148:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:163:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:166:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:181:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:184:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:199:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:202:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:217:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:220:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:235:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:238:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:253:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:256:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:271:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:274:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:289:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:292:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:307:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:310:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:325:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:328:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:343:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:346:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^