Main.cc: In function ‘int isBeautifulNumber(int)’:
Main.cc:8:13: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
}else if(i==s&i%2==0){
~^~~
Main.cc: In function ‘int main()’:
Main.cc:19:12: error: ‘n’ was not declared in this scope
}while(n<1||n>100);
^
Main.cc:18:9: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
~~~~~^~~~~~~~~~