Main.cc: In function ‘int main()’: Main.cc:6:5: error: expected ‘,’ or ‘;’ before ‘scanf’ scanf("%lf",&r); ^~~~~