Main.cc: In function ‘int main()’: Main.cc:10:11: error: a function-definition is not allowed here before ‘{’ token int main(){ ^ Main.cc:4:5: warning: unused variable ‘k’ [-Wunused-variable] int k; ^ Main.cc:6:5: warning: unused variable ‘n’ [-Wunused-variable] int n = 0; ^ Main.cc:8:8: warning: unused variable ‘s’ [-Wunused-variable] double s = 0; ^ Main.cc:26:1: error: expected ‘}’ at end of input } ^