Main.cc: In function 'void do2(int)': Main.cc:5:64: warning: suggest parentheses around assignment used as truth value [-Wparentheses] void do2(int a){int x=a%10,y=a/10;for(int i=10;i<=a;i++){if(x=y){cout<<i<<"\n";}} ^ Main.cc:6:16: error: a function-definition is not allowed here before '{' token void do3(int a){int x=a%10,z=a-x-(a/10)%10;for(int i=10;i<=a;i++){if(x==z){cout<<i<<"\n";}} ^ Main.cc:31:16: error: expected '}' at end of input } ^