Main.cc: In function ‘int main()’: Main.cc:12:11: error: ‘num’ was not declared in this scope double x=num/n*1.0; ^~~ Main.cc:12:11: note: suggested alternative: ‘sum’ double x=num/n*1.0; ^~~ sum