prog.c: In function ‘main’:
prog.c:9:5: warning: implicit declaration of function ‘gets’; did you mean ‘fgets’? [-Wimplicit-function-declaration]
gets(a);
^~~~
fgets
prog.c:11:13: warning: format ‘%c’ expects argument of type ‘char *’, but argument 2 has type ‘int *’ [-Wformat=]
scanf("%c", &ch);
~^ ~~~
%lc
prog.c: In function ‘count’:
prog.c:20:13: warning: comparison between pointer and integer
for(i=0;c[i]!=NULL;i++)
^~
prog.c: At top level:
prog.c:31:1: error: stray ‘\354’ in program
출처: https://inhwascope.tistory.com/80 [인천확대경]
^
prog.c:31:2: error: stray ‘\266’ in program
출처: https://inhwascope.tistory.com/80 [인천확대경]
^
prog.c:31:3: error: stray ‘\234’ in program
출처: https://inhwascope.tistory.com/80 [인천확대경]
^
prog.c:31:4: error: stray ‘\354’ in program
출처: https://inhwascope.tistory.com/80 [인천확대경]
^
prog.c:31:5: error: stray ‘\262’ in program
출처: https://inhwascope.tistory.com/80 [인천확대경]
^
prog.c:31:6: error: stray ‘\230’ in program
출처: https://inhwascope.tistory.com/80 [인천확대경]
^
prog.c:31:7: error: expected identifier or ‘(’ before ‘:’ token
출처: https://inhwascope.tistory.com/80 [인천확대경]
^
prog.c: In function ‘main’:
prog.c:11:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c", &ch);
^~~~~~~~~~~~~~~~