Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
160644 王翊金恩 19从小到大进行排序 C++ Compile Error 0 MS 0 KB 279 2026-09-25 20:35:11

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int a[100005]; int main() { int n,p; cin>>n; for(int i=1;i<=n;i++) { cin>>p; tpx[p]++; } for(int j=0;j<=100000;j++) { for(int k=1;k<=tpx[j];k++) { cout<<j<<" "; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:11:3: error: 'tpx' was not declared in this scope
   tpx[p]++;
   ^
Main.cc:15:21: error: 'tpx' was not declared in this scope
      for(int k=1;k<=tpx[j];k++)
                     ^