#include <stdio.h>
#include <math.h>
int main ()
{
const float R=4.21, g=3, a=11.6, Q=89.52, d=1.25;
float x, q, y, S;
scanf("%f",&x);
q=x*g + a;
y= pow(6+a,1/3);
S= (q+pow(d*d+log(y)-R*Q,1/2)/R);
printf("q=%f, y=%f, S=%f",q, y, S);
printf("\n");
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CmludCBtYWluICgpIAp7CmNvbnN0IGZsb2F0IFI9NC4yMSwgZz0zLCBhPTExLjYsIFE9ODkuNTIsIGQ9MS4yNTsKZmxvYXQgIHgsICBxLCB5LCBTOwpzY2FuZigiJWYiLCZ4KTsKcT14KmcgKyBhOwp5PSBwb3coNithLDEvMyk7ClM9IChxK3BvdyhkKmQrbG9nKHkpLVIqUSwxLzIpL1IpOwpwcmludGYoInE9JWYsICB5PSVmLCAgUz0lZiIscSwgeSwgUyk7CnByaW50ZigiXG4iKTsKCglyZXR1cm4gMDsKfQoKCg==
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, or enum expected
#include <stdio.h>
^
Main.java:2: error: illegal character: '#'
#include <math.h>
^
Main.java:6: error: class, interface, or enum expected
float x, q, y, S;
^
Main.java:7: error: class, interface, or enum expected
scanf("%f",&x);
^
Main.java:8: error: class, interface, or enum expected
q=x*g + a;
^
Main.java:9: error: class, interface, or enum expected
y= pow(6+a,1/3);
^
Main.java:10: error: class, interface, or enum expected
S= (q+pow(d*d+log(y)-R*Q,1/2)/R);
^
Main.java:11: error: class, interface, or enum expected
printf("q=%f, y=%f, S=%f",q, y, S);
^
Main.java:12: error: class, interface, or enum expected
printf("\n");
^
Main.java:14: error: class, interface, or enum expected
return 0;
^
Main.java:15: error: class, interface, or enum expected
}
^
12 errors