Main.cc: In function 'int main()':
Main.cc:8:13: error: expected initializer before '.' token
double a.b;
^
Main.cc:9:21: error: 'a' was not declared in this scope
scanf("%lf%lf",&a,&b);
^
Main.cc:9:24: error: 'b' was not declared in this scope
scanf("%lf%lf",&a,&b);
^