Main.cc: In function 'int main()': Main.cc:8:8: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(a==0&&b==1 || a==1&&b==2 ||a==2&&b==0){ ^ Main.cc:8:35: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(a==0&&b==1 || a==1&&b==2 ||a==2&&b==0){ ^ Main.cc:17:1: error: expected '}' at end of input } ^