prog.c: In function ‘main’:
prog.c:6: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:6: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:6: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:10:1: error: expected ‘;’ before ‘getchar’
getchar();
^~~~~~~
prog.c:4:11: warning: variable ‘l’ set but not used [-Wunused-but-set-variable]
int v,t,a,l;
^