Main.cc: In function 'int main()': Main.cc:4:22: error: expected ',' or ';' before 'h' double s=100 h=100; ^ Main.cc:7:13: error: 'h' was not declared in this scope h=h/2; ^ Main.cc:10:31: error: 'h' was not declared in this scope printf("%.6lf %6lf",s,h); ^