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("\n");
  9. l=v*t+(a*t2)/2;
  10. printf("rastoyanie")
  11. return 0;
  12. }
  13.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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;
           ^
stdout
Standard output is empty