prog.c: In function 'main':
prog.c:10:16: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
fscanf(fp, "%d %d %d %e %e %e %e %d", t1, t2, t3, h1, h2, h3, h4, prj);
^
prog.c:10:16: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'int' [-Wformat=]
prog.c:10:16: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'int' [-Wformat=]
prog.c:10:16: warning: format '%e' expects argument of type 'float *', but argument 6 has type 'double' [-Wformat=]
prog.c:10:16: warning: format '%e' expects argument of type 'float *', but argument 7 has type 'double' [-Wformat=]
prog.c:10:16: warning: format '%e' expects argument of type 'float *', but argument 8 has type 'double' [-Wformat=]
prog.c:10:16: warning: format '%e' expects argument of type 'float *', but argument 9 has type 'double' [-Wformat=]
prog.c:10:16: warning: format '%d' expects argument of type 'int *', but argument 10 has type 'int' [-Wformat=]
prog.c:20:28: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
r = fscanf(fp, "%d %d %d %e %e %e %e %d", t1, t2, t3, h1, h2, h3, h4, prj);
^
prog.c:20:28: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'int' [-Wformat=]
prog.c:20:28: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'int' [-Wformat=]
prog.c:20:28: warning: format '%e' expects argument of type 'float *', but argument 6 has type 'double' [-Wformat=]
prog.c:20:28: warning: format '%e' expects argument of type 'float *', but argument 7 has type 'double' [-Wformat=]
prog.c:20:28: warning: format '%e' expects argument of type 'float *', but argument 8 has type 'double' [-Wformat=]
prog.c:20:28: warning: format '%e' expects argument of type 'float *', but argument 9 has type 'double' [-Wformat=]
prog.c:20:28: warning: format '%d' expects argument of type 'int *', but argument 10 has type 'int' [-Wformat=]
prog.c:28:24: error: incompatible type for argument 1 of 'printf'
printf(t1 + t2 + t3 + avgH + prj);
^
In file included from prog.c:1:0:
/usr/include/stdio.h:362:12: note: expected 'const char * restrict' but argument is of type 'long double'
extern int printf (const char *__restrict __format, ...);
^
prog.c:29:33: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
r = fscanf(fp, "%d %d %d %e %e %e %e %d", t1, t2, t3, h1, h2, h3, h4, prj);
^
prog.c:29:33: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'int' [-Wformat=]
prog.c:29:33: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'int' [-Wformat=]
prog.c:29:33: warning: format '%e' expects argument of type 'float *', but argument 6 has type 'double' [-Wformat=]
prog.c:29:33: warning: format '%e' expects argument of type 'float *', but argument 7 has type 'double' [-Wformat=]
prog.c:29:33: warning: format '%e' expects argument of type 'float *', but argument 8 has type 'double' [-Wformat=]
prog.c:29:33: warning: format '%e' expects argument of type 'float *', but argument 9 has type 'double' [-Wformat=]
prog.c:29:33: warning: format '%d' expects argument of type 'int *', but argument 10 has type 'int' [-Wformat=]
prog.c:6:29: warning: unused variable 'line' [-Wunused-variable]
int t1, t2, t3, prj, r, line = 0;
^
prog.c: At top level:
prog.c:39:5: error: expected identifier or '(' before 'return'
return (0);
^
prog.c:40:2: error: expected identifier or '(' before '}' token
}
^