Main.cc: In function ‘int main()’: Main.cc:6:19: error: ‘b’ was not declared in this scope double r=(total-b-g)/4 ^ Main.cc:4:10: warning: unused variable ‘d’ [-Wunused-variable] double d=total-9.4*5; ^ Main.cc:6:10: warning: unused variable ‘r’ [-Wunused-variable] double r=(total-b-g)/4 ^