Main.cc: In function 'int main()': Main.cc:13:17: error: 's' was not declared in this scope printf("%.4lf",s); ^