https://www.acmicpc.net/problem/1032



문제가 이건데



내가 쓴게 이거고




#include <stdio.h>


int main(void)

{

int a, b, n, s = 0;

char str[50][51];



scanf("%d", &n);

for (a = 0; a < n; a++) scanf("%s", str[a]);


while (str[0][s] != '\0') s++;



for (a = 0; a < n; a++)

{

for (b = 0; b < s; b++)

{

if (str[a][b] != str[a+1][b]) str[a+1][b] = '?';

}

}

printf("%s", str[n - 1]);

return 0;

}



시발 뭐가 문젠데 계속 런타임 에러 뜨는거져