Main.cc: In function 'int main()': Main.cc:12:14: error: 'x' was not declared in this scope else if(10<=x&&x<20){ ^ Main.cc:4:8: warning: unused variable 'y' [-Wunused-variable] int n,y; ^