| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157139 | 谭鑫哲 | 打印每一趟冒泡排序 | C++ | Compile Error | 0 MS | 0 KB | 348 | 2026-07-20 10:56:21 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,a[2001]; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } for(int i=n-1;i>0;i--){ for(int j=0;j<i;j++){ if(a[j]>a[j+1]){ int t=a[j]; a[j]=a[j+1]; a[j+1]=t; } } for(int k=1;k<=n-1;k++)ccout<<a[k]<<' '; cout<<a[n-1]<<endl; } return 0; }
Main.cc: In function 'int main()': Main.cc:17:26: error: 'ccout' was not declared in this scope for(int k=1;k<=n-1;k++)ccout<