| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 88166 | 倪士燊 | 19从小到大进行排序 | C++ | Compile Error | 0 MS | 0 KB | 302 | 2024-08-18 10:50:33 |
#include<bits/stdc++.h> using namespace std; int t[shu]; int n; int main(){ cin >> n; for(int i = 0; i <= n-1; i++) { cin >> shu; t[shu]++; } for(int i = 0; i <= 100000; i++) { for(int ci = 0;ci < t[i]; ci++) cout << i << " "; } return 0; }
Main.cc:3:7: error: 'shu' was not declared in this scope
int t[shu];
^
Main.cc: In function 'int main()':
Main.cc:9:13: error: 'shu' was not declared in this scope
cin >> shu;
^
Main.cc:10:6: error: 't' was not declared in this scope
t[shu]++;
^
Main.cc:14:26: error: 't' was not declared in this scope
for(int ci = 0;ci < t[i]; ci++)
^