노미네이터norminette 에러 설명
#include <unistd.h>
void ft_print_alphabet(void)
{
charc='a';
while (c<='z')
{
write(1,&c,1);
c++;
}
}
c1r4s4% norminette ft_print_alphabet.c
Norme: ./ft_print_alphabet.c
Error (line 15): declarations must be followed by one empty line in ft_print_alphabet
Error (line 17, col 6): c is instanciated during declaration
Error (line 18, col 10): missing space around <=
Error (line 20, col 8): Spacing after call to write
Error (line 20, col 10): bad character after ,
Error (line 20, col 13): bad character after ,
Error (line 23): Empty line
Error (line 24, col 0): no empty line before block
c1r4s4%
1.
Error (line 15): declarations must be followed by one empty line in ft_print_alphabet
char c; 다음에 띄어쓰기 필요
2.
Error (line 17, col 6): c is instanciated during declaration
char c= 'a';안됨
char c;
c = 'a';로 고친다.
3.
Error (line 18, col 10): missing space around <=
c<='z'
c <= 'z'
로 바꾼다
4.
Error (line 20, col 8): Spacing after call to write
Error (line 20, col 10): bad character after ,
Error (line 20, col 13): bad character after ,
write(1, &c, 1);
하나하나 띄어써주어야 한다.
5.
Error (line 23): Empty line
Error (line 24, col 0): no empty line before block
}
}
사이 빈 줄이 있으면 안된다.