beauty.cpp:32:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main() {
^
beauty.cpp: In function 'int main()':
beauty.cpp:48:20: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
if ((mask >> j) & 1 ^ 1) continue;
~~~~~~~~~~~~^~~
beauty.cpp:50:22: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
if (((mask >> k) & 1 ^ 1) && ok[j][k]) {
~~~~~~~~~~~~^~~
beauty.cpp:34:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
beauty.cpp:37:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
~~~~~^~~~~~~~~~