| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81149 | 张之隽 | 19从小到大进行排序 | C++ | Compile Error | 0 MS | 0 KB | 226 | 2024-07-12 10:30:54 |
#include <iostream> using namespace std; int main() { int n,k; cin>>n; for(int i=1;i<=n;i++){ cin>>k; a[k]++; } for(int j=0;j<=100000;j++){ while(a[j]>){ cout<<j<<' '; a[j]--; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:9:2: error: 'a' was not declared in this scope
a[k]++;
^
Main.cc:12:8: error: 'a' was not declared in this scope
while(a[j]>){
^
Main.cc:12:13: error: expected primary-expression before ')' token
while(a[j]>){
^