Main.cc: In function ‘int main()’: Main.cc:19:1: error: expected ‘}’ at end of input } ^ Main.cc:5:7: warning: unused variable ‘j’ [-Wunused-variable] int n,j,m,sum=0; ^ Main.cc:19:1: error: expected ‘}’ at end of input } ^