Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81113 杜奕辰 19从小到大进行排序 C++ Compile Error 0 MS 0 KB 1701 2024-07-12 10:19:45

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int n,s; cin>>n; int a[100001] = {0}; for(int i=1;i<=n;i++){ cin>>s; a[s]++; } for(int i=0;i<=100000;i++){ while(a[i] > 0){ cout<<i<<" "; a[i]--; } } }#include<iostream> using namespace std; int main(){ int n,s; cin>>n; int a[100001] = {0}; for(int i=1;i<=n;i++){ cin>>s; a[s]++; } for(int i=0;i<=100000;i++){ while(a[i] > 0){ cout<<i<<" "; a[i]--; } } }#include<iostream> using namespace std; int main(){ int n,s; cin>>n; int a[100001] = {0}; for(int i=1;i<=n;i++){ cin>>s; a[s]++; } for(int i=0;i<=100000;i++){ while(a[i] > 0){ cout<<i<<" "; a[i]--; } } }#include<iostream> using namespace std; int main(){ int n,s; cin>>n; int a[100001] = {0}; for(int i=1;i<=n;i++){ cin>>s; a[s]++; } for(int i=0;i<=100000;i++){ while(a[i] > 0){ cout<<i<<" "; a[i]--; } } }#include<iostream> using namespace std; int main(){ int n,s; cin>>n; int a[100001] = {0}; for(int i=1;i<=n;i++){ cin>>s; a[s]++; } for(int i=0;i<=100000;i++){ while(a[i] > 0){ cout<<i<<" "; a[i]--; } } }#include<iostream> using namespace std; int main(){ int n,s; cin>>n; int a[100001] = {0}; for(int i=1;i<=n;i++){ cin>>s; a[s]++; } for(int i=0;i<=100000;i++){ while(a[i] > 0){ cout<<i<<" "; a[i]--; } } }#include<iostream> using namespace std; int main(){ int n,s; cin>>n; int a[100001] = {0}; for(int i=1;i<=n;i++){ cin>>s; a[s]++; } for(int i=0;i<=100000;i++){ while(a[i] > 0){ cout<<i<<" "; a[i]--; } } }


Run Info:

Main.cc:17:2: error: stray '#' in program
 }#include 
  ^
Main.cc:33:2: error: stray '#' in program
 }#include 
  ^
Main.cc:49:2: error: stray '#' in program
 }#include 
  ^
Main.cc:65:2: error: stray '#' in program
 }#include 
  ^
Main.cc:81:2: error: stray '#' in program
 }#include 
  ^
Main.cc:97:2: error: stray '#' in program
 }#include 
  ^
Main.cc:17:3: error: 'include' does not name a type
 }#include 
   ^
Main.cc: In function 'int main()':
Main.cc:19:5: error: redefinition of 'int main()'
 int main(){ 
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){ 
     ^
Main.cc: At global scope:
Main.cc:33:3: error: 'include' does not name a type
 }#include 
   ^
Main.cc: In function 'int main()':
Main.cc:35:5: error: redefinition of 'int main()'
 int main(){ 
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){ 
     ^
Main.cc: At global scope:
Main.cc:49:3: error: 'include' does not name a type
 }#include 
   ^
Main.cc: In function 'int main()':
Main.cc:51:5: error: redefinition of 'int main()'
 int main(){ 
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){ 
     ^
Main.cc: At global scope:
Main.cc:65:3: error: 'include' does not name a type
 }#include 
   ^
Main.cc: In function 'int main()':
Main.cc:67:5: error: redefinition of 'int main()'
 int main(){ 
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){ 
     ^
Main.cc: At global scope:
Main.cc:81:3: error: 'include' does not name a type
 }#include 
   ^
Main.cc: In function 'int main()':
Main.cc:83:5: error: redefinition of 'int main()'
 int main(){ 
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){ 
     ^
Main.cc: At global scope:
Main.cc:97:3: error: 'include' does not name a type
 }#include 
   ^
Main.cc: In function 'int main()':
Main.cc:99:5: error: redefinition of 'int main()'
 int main(){ 
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){ 
     ^