Main.cc: In function ‘int main()’: Main.cc:6:9: error: ‘n’ was not declared in this scope printf(n.2lf) ^ Main.cc:4:10: warning: unused variable ‘ans’ [-Wunused-variable] int a,b,ans; ^~~