Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
123038 唐诗阳 19从小到大进行排序 C++ Compile Error 0 MS 0 KB 395 2025-06-22 15:49:11

Tests(0/0):


Code:

#include<iostream> #include<cstdio> //scanf()\printf() #include<cstring> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long a[100001]={0},x,n; cin>>n; for(int i=1;i<=n;i++) { cin>>x; a[x]++; } for(int i=1;i<=100000;i++) { while(a[i]!=0){ cout<<i<<' '; a[i]--; } } cout<<num; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:19:8: error: 'num' was not declared in this scope
  cout<