Main.cc: In function 'int main()': Main.cc:26:20: error: 'b' was not declared in this scope printf("%.2lf\n",b*c) ^ Main.cc:26:22: error: 'c' was not declared in this scope printf("%.2lf\n",b*c) ^