#include <stdio.h>
int main()
{
char chr=0;
int max=0;
int count=0;
int i;
char arr[1001] = {0x00,};
char save[1001] = {0x00,};
while (chr != EOF)
{
chr = getchar();
//if (chr == EOF) break;
if (chr != 10) arr[count++] = chr;
else
{
if (count > max)
{
max = count;
for (i=0;i<max;i++)
save[i] = arr[i];
for (i=0;i<1001;i++)
arr[i] = 0;
}
count = 0;
}
}
//count = 0;
printf("%d\n", max);
for (i=0;i<max;i++)
printf("%c",save[i]);
printf("\n");
return 0;
}
결과가 잘 출력되는데 왜 인증이 안될까요 ?