fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int v,t,a,l;
  6. printf("Vvesti 3 znacheniya\n\n");
  7. scanf("%d %d %d",&v,&t,&a);
  8. printf("%d %d %d",v,t,a);
  9. printf("rastoyanie",l=v*t+(a*t2)/2);
  10. return 0;
  11. }
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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;
           ^
stdout
Standard output is empty