编译失败,求助!
查看原帖
编译失败,求助!
738212
chanthu2114楼主2022/9/21 19:10
#include<iostream>
#include<stdio.h>
using namespace std;
string s;char c[116][400];
int MAXN=0,k;
int main()
{
    scanf("%s",&s);
    for(int i=0;i<s.length();i++)
        c[int(s[i])+1][i]++;
    for(int i=91;i<107;i++)
        for(int j=0;j<s.length();j++)
        {
            k+=s[i][j];
            if(k>MAXN)MAXN=k;
        }
    for(int j=MAXN;j>=0;j--)
    {
        for(int i=106;i>=91;i--)
            printf("%c ",s[i][j]);
        printf("\n");
    }
    for(int i=91;i<106;i++)
    	printf("%c ",(char)(s[i]-1));
    return 0;
}
2022/9/21 19:10
加载中...