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