Main.cc:1:1: error: 'include' does not name a type include ^ Main.cc: In function 'int main()': Main.cc:6:16: error: 'scanf' was not declared in this scope scanf("%lf",&r); ^ Main.cc:8:17: error: 'printf' was not declared in this scope printf("%.2f",s); ^