Main.cc: In function 'int main()':
Main.cc:11:19: error: expected '}' at end of input
printf("%.5lf",j);
^
Main.cc:6:41: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf%lf%lf%lf%lf",&a,&b,&c,&d,&x);
^