编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#22384 | #1120. Rhodoks的排序 | Compile Error | 0 | 0 ms | 0 K | C / 531 B | paul0917 | 2020-02-12 20:07:04 |
#include <iostream>
#include <algorithm>
#include <string.h>
using namespace std;
char a[100001], b[100001];
int main() {
int i = 1;
while (cin >> a[i]) {
if (a[i] == '\n')
break;
i++;
}
sort(a + 1, a + i);
int j, k;
k = 1;
for (j = 1; j < i; j++) {
if (a[j] < 'a' && a[j] > '9') {
b[k] = a[j], k++;
continue;
} else
cout << a[j];
}
for (i = 1; i < k; i++) {
cout << b[i];
}
}
编译信息
/sandbox/1/a.c:1:10: fatal error: 'iostream' file not found
#include <iostream>
^~~~~~~~~~
1 error generated.