| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151862 | 岑思烁 | 18高度为k的树 | C++ | Compile Error | 0 MS | 0 KB | 343 | 2026-04-19 11:30:23 |
}#include<bits/stdc++.h> using namespace std; int main(){ int n,x,temp; cin>>n; int a[n+1]; for(int i=1;i<=n;i--){ cin>>a[i]; } cin>>x; temp=a[n]; for(int i=n;i>=x;i++){ a[i]=a[i-1]; } a[x]=temp; for(int i=1;i<=n;i++){ cout<<a[i]<<" "; } return 0; }
Main.cc:2:2: error: stray '#' in program }#include ^ Main.cc:2:1: error: expected declaration before '}' token }#include ^