Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
126543 | 编程星球01 | 19从小到大进行排序 | C++ | Runtime Error | 1 MS | 1048 KB | 501 | 2025-07-20 08:37:08 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,b; int a[200001]={0}; // 初始化 0 cin>>n; for(int i=0;i<n;i++){ cin>>b; a[b]++; } for(int i=0;;i++){ if(a[i]>0){ cout<<i<<" "; } } return 0; }
Runtime Error:Segmentation fault