| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 80275 | 刘慕莀 | 序列变换 | C++ | Compile Error | 0 MS | 0 KB | 213 | 2024-07-11 11:56:45 |
#include<bits/stdc++.h> using namespace std; int a[101]; int main(){ int n; cin>>n; for(int i=1; i<=;i++){ cin>>a[i]; } for(int i=1;i<=n;i=i++){ cout<<a[a[i]]; } return 0; }
Main.cc: In function 'int main()':
Main.cc:7:21: error: expected primary-expression before ';' token
for(int i=1; i<=;i++){
^
Main.cc:10:22: warning: operation on 'i' may be undefined [-Wsequence-point]
for(int i=1;i<=n;i=i++){
^