Main.cc: In function 'int main()': Main.cc:6:23: warning: unused variable 'x' [-Wunused-variable] int i = 0,j,sum = 0,n,x; ^ Main.cc:17:1: error: expected '}' at end of input } ^