#include<bits/stdc++.h>
using namespace std;
#define prt(x) cout<<x
char sent[101];
int cnt[27]={0};
int ma=0;
int main(){
for(int i=1;i<=4;i++){
gets(sent);
int n=strlen(sent);
for(int o=0;o<n;o++){
cnt[sent[o]-'A']++;
}
}
for(int i=0;i<26;i++){
if(cnt[i]>ma)ma=cnt[i];
int maxi=i;
}
for(int i=ma;i>=1;i--){
for(int j=0;j<26;j++){
if(cnt[j]>=i){
prt("* ");
}
else prt(" ");
}
printf("\n");
}
for(int i=0;i<26;i++){
printf("%c ",'A'+i);
}
return 0;
}
求助!!为什么老是编译失败!!自己电脑上用devcpp就是好的