fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int v,t,a,l;
  5. printf("Vvesti 3 znacheniya\n\n");
  6. scanf("%d %d %d",v,t,a);
  7. printf("\n");
  8. l=v*t+(a*t*2)/2;
  9. printf("rastoyanie")
  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: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;
           ^
stdout
Standard output is empty