| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 140867 | 刘梓含 | 19从小到大进行排序 | C++ | Compile Error | 0 MS | 0 KB | 371 | 2025-12-20 14:02:39 |
#include<iostream> using namespace std; int main() { int n,a[200001]; cin>>n; for(int i=1;i <= n;i++) { cin>>a[i]; } for(int i = 1;i <= n;i++) { for(int j=1;j <= n;j++) { if(a[j]<a[j + 1]) { int s=a[j]; a[j]=a[j+1]; a[j+1]=s; } } } for(int i=0;i <= n; i++) { cout<<a[i]<<" "; } } return 0; }
Main.cc:27:2: error: expected unqualified-id before 'return' return 0; ^ Main.cc:28:1: error: expected declaration before '}' token } ^