prog.c: In function ‘main’:
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;
^