beauty.cpp:8:4: error: expected unqualified-id before numeric constant
ll 3t(ll x) {ll s = 0; while (x) {s += (x % 3 == 1); x /= 3; } return s; }
^~
beauty.cpp:9:4: error: expected unqualified-id before numeric constant
ll 2t(ll x) {ll s = 0; while (x) {s += (x % 2 == 1); x /= 2; } return s; }
^~
beauty.cpp: In function 'int main()':
beauty.cpp:23:7: error: unable to find numeric literal operator 'operator""t'
if(3t(a[i]) == 3t(a[j]) || 2t(a[i]) == 2t(a[j]))
^~
beauty.cpp:23:7: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
beauty.cpp:23:19: error: unable to find numeric literal operator 'operator""t'
if(3t(a[i]) == 3t(a[j]) || 2t(a[i]) == 2t(a[j]))
^~
beauty.cpp:23:19: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
beauty.cpp:23:31: error: unable to find numeric literal operator 'operator""t'
if(3t(a[i]) == 3t(a[j]) || 2t(a[i]) == 2t(a[j]))
^~
beauty.cpp:23:31: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
beauty.cpp:23:43: error: unable to find numeric literal operator 'operator""t'
if(3t(a[i]) == 3t(a[j]) || 2t(a[i]) == 2t(a[j]))
^~
beauty.cpp:23:43: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
beauty.cpp:28:21: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
if((i >> j) & 1 ^ 1) continue;
~~~~~~~~~^~~
beauty.cpp:30:18: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
if(((i >> k) & 1 ^ 1) && b[j][k])
~~~~~~~~~^~~