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:30: error: ‘t2’ undeclared (first use in this function)
printf("rastoyanie",l=v*t+(a*t2)/2);
^~
prog.c:9:30: note: each undeclared identifier is reported only once for each function it appears in
prog.c:5:11: warning: variable ‘l’ set but not used [-Wunused-but-set-variable]
int v,t,a,l;
^