#include #include #include #include char* compactString(char *src,int leng) { char *new_str = (char*)calloc(leng+1,sizeof(char)); int k=0; for(int i=0;i 0 ? +1 : 0; } int main() { char str[100][100]; int i =0; int j =0; while((c=getchar())!=EOF){ if(c=='\n'){ j=0; i++; } str[i][j]=c; j++; } for(int k=0;k