fork download
  1. #include <math.h>
  2. #include <stdio.h>
  3. #define Pi 3.14
  4. int main(void)
  5. {
  6. float r,b1,s1,x,
  7. f=4.215,
  8. a=286.35,
  9. dk=8.351,
  10. c=6.28,
  11. b=-12.6;
  12. printf("Введіть значення змінної x: "); scanf("%f", &x);
  13. r=x*b+f;
  14. s1=pow(a+r, 1.0/2.0);
  15. b1=a+pow(pow(s1,2.0)+2*pow(c,x),2.0)/r+dk*pow(sin(c),2.0);
  16. printf(“r=%f, s1=%f, b1=%f” , r, s1, b1,);
  17. return0
  18. }
  19.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:16:11: error: stray ‘\342’ in program
    printf(“r=%f,  s1=%f,  b1=%f” , r, s1, b1,);
           ^
prog.c:16:12: error: stray ‘\200’ in program
    printf(“r=%f,  s1=%f,  b1=%f” , r, s1, b1,);
            ^
prog.c:16:13: error: stray ‘\234’ in program
    printf(“r=%f,  s1=%f,  b1=%f” , r, s1, b1,);
             ^
prog.c:16:16: error: expected expression before ‘%’ token
    printf(“r=%f,  s1=%f,  b1=%f” , r, s1, b1,);
                ^
prog.c:16:34: error: stray ‘\342’ in program
    printf(“r=%f,  s1=%f,  b1=%f” , r, s1, b1,);
                                  ^
prog.c:16:35: error: stray ‘\200’ in program
    printf(“r=%f,  s1=%f,  b1=%f” , r, s1, b1,);
                                   ^
prog.c:16:36: error: stray ‘\235’ in program
    printf(“r=%f,  s1=%f,  b1=%f” , r, s1, b1,);
                                    ^
prog.c:17:4: error: ‘return0’ undeclared (first use in this function)
    return0
    ^~~~~~~
prog.c:17:4: note: each undeclared identifier is reported only once for each function it appears in
prog.c:17:11: error: expected ‘;’ before ‘}’ token
    return0
           ^
           ;
 }
 ~          
prog.c:6:11: warning: variable ‘b1’ set but not used [-Wunused-but-set-variable]
   float r,b1,s1,x,
           ^~
prog.c:12:63: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
 printf("Введіть значення змінної x: "); scanf("%f", &x);
                                                               ^~~~~~~~~~~~~~~
stdout
Standard output is empty