Main.cc: In function 'int main()': Main.cc:13:13: error: 'n' was not declared in this scope x=s*1.0/n; ^