| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 123739 | 徐浩天 | 22插入数据 | C++ | Compile Error | 0 MS | 0 KB | 381 | 2025-07-10 11:39:05 |
#include<bits/stdc++.h> using namespace std; int main() { int n,a[101],m,xb=0; cin>>n; for(int i=0;i<n;i++) cin>>a[i]; cin>>m; for(int i=0;i<n;i++){ if(a[i]>m && a[i+1]<=m){ xb=i+1; if(a[n-2]>=m); xb=n-2; } for(int i=n-2;i>=xb;i--){ a[i+1]=a[i]; a[xb]=m; for(int i=0;i<=n;i++) cout<<a[i]<<" "; return 0; }
Main.cc: In function 'int main()': Main.cc:21:1: error: expected '}' at end of input } ^ Main.cc:21:1: error: expected '}' at end of input