prog.c: In function ‘main’:
prog.c:9:14: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [-Wincompatible-pointer-types]
fprintf(" 회사원급여\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from prog.c:1:0:
/usr/include/stdio.h:358:12: note: expected ‘FILE * restrict {aka struct _IO_FILE * restrict}’ but argument is of type ‘char *’
extern int fprintf (FILE *__restrict __stream,
^~~~~~~
prog.c:9:6: error: too few arguments to function ‘fprintf’
fprintf(" 회사원급여\n");
^~~~~~~
In file included from prog.c:1:0:
/usr/include/stdio.h:358:12: note: declared here
extern int fprintf (FILE *__restrict __stream,
^~~~~~~
prog.c:10:14: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [-Wincompatible-pointer-types]
fprintf("=========================================================\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from prog.c:1:0:
/usr/include/stdio.h:358:12: note: expected ‘FILE * restrict {aka struct _IO_FILE * restrict}’ but argument is of type ‘char *’
extern int fprintf (FILE *__restrict __stream,
^~~~~~~
prog.c:10:6: error: too few arguments to function ‘fprintf’
fprintf("=========================================================\n");
^~~~~~~
In file included from prog.c:1:0:
/usr/include/stdio.h:358:12: note: declared here
extern int fprintf (FILE *__restrict __stream,
^~~~~~~
prog.c:11:14: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [-Wincompatible-pointer-types]
fprintf(" 사번 이름 본봉 수당 상여금 총액 \n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from prog.c:1:0:
/usr/include/stdio.h:358:12: note: expected ‘FILE * restrict {aka struct _IO_FILE * restrict}’ but argument is of type ‘char *’
extern int fprintf (FILE *__restrict __stream,
^~~~~~~
prog.c:11:6: error: too few arguments to function ‘fprintf’
fprintf(" 사번 이름 본봉 수당 상여금 총액 \n");
^~~~~~~
In file included from prog.c:1:0:
/usr/include/stdio.h:358:12: note: declared here
extern int fprintf (FILE *__restrict __stream,
^~~~~~~
prog.c:12:17: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [-Wincompatible-pointer-types]
fprintf("---------------------------------------------------------\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from prog.c:1:0:
/usr/include/stdio.h:358:12: note: expected ‘FILE * restrict {aka struct _IO_FILE * restrict}’ but argument is of type ‘char *’
extern int fprintf (FILE *__restrict __stream,
^~~~~~~
prog.c:12:9: error: too few arguments to function ‘fprintf’
fprintf("---------------------------------------------------------\n");
^~~~~~~
In file included from prog.c:1:0:
/usr/include/stdio.h:358:12: note: declared here
extern int fprintf (FILE *__restrict __stream,
^~~~~~~
prog.c:13:30: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[10]’ [-Wformat=]
while((fscanf(fp1, "%s %s %d %d %d", &sabun, &name, &bonbong, &soo, &sang, &result)) != EOF ){
^
prog.c:13:33: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘char (*)[10]’ [-Wformat=]
while((fscanf(fp1, "%s %s %d %d %d", &sabun, &name, &bonbong, &soo, &sang, &result)) != EOF ){
^
prog.c:13:28: warning: too many arguments for format [-Wformat-extra-args]
while((fscanf(fp1, "%s %s %d %d %d", &sabun, &name, &bonbong, &soo, &sang, &result)) != EOF ){
^~~~~~~~~~~~~~~~
prog.c:18:17: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [-Wincompatible-pointer-types]
fprintf("---------------------------------------------------------\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from prog.c:1:0:
/usr/include/stdio.h:358:12: note: expected ‘FILE * restrict {aka struct _IO_FILE * restrict}’ but argument is of type ‘char *’
extern int fprintf (FILE *__restrict __stream,
^~~~~~~
prog.c:18:9: error: too few arguments to function ‘fprintf’
fprintf("---------------------------------------------------------\n");
^~~~~~~
In file included from prog.c:1:0:
/usr/include/stdio.h:358:12: note: declared here
extern int fprintf (FILE *__restrict __stream,
^~~~~~~
prog.c:21:6: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
exit(0);
^~~~
prog.c:21:6: warning: incompatible implicit declaration of built-in function ‘exit’
prog.c:21:6: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’