Main.cc: In function 'int main()': Main.cc:10:9: error: 'w' was not declared in this scope sum+=w; ^ Main.cc:12:3: error: 'w' was not declared in this scope w*=2; ^ Main.cc:6:6: warning: unused variable 'ejz' [-Wunused-variable] int ejz=1; ^