prog.c: In function ‘main’:
prog.c:7:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=]
scanf("%d %d %d",v,t,a);
^
prog.c:7:12: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat=]
scanf("%d %d %d",v,t,a);
^
prog.c:7:15: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘int’ [-Wformat=]
scanf("%d %d %d",v,t,a);
^
prog.c:9:10: error: ‘t2’ undeclared (first use in this function)
l=v*t+(a*t2)/2;
^~
prog.c:9:10: note: each undeclared identifier is reported only once for each function it appears in
prog.c:11:1: error: expected ‘;’ before ‘getchar’
getchar();
^~~~~~~
prog.c:5:11: warning: variable ‘l’ set but not used [-Wunused-but-set-variable]
int v,t,a,l;
^