encoder.cpp: In function 'int encode(int, int, int)':
encoder.cpp:3:61: error: expected ':' before ';' token
if(!r)for(;i<=4096;i++)__builtin_popcount(i)==6?c[++r]=i;
^
encoder.cpp:3:61: error: expected primary-expression before ';' token
decoder.cpp: In function 'int decode(int, int, int)':
decoder.cpp:3:61: error: expected ':' before ';' token
if(!r)for(;i<=4096;i++)__builtin_popcount(i)==6?c[++r]=i;
^
decoder.cpp:3:61: error: expected primary-expression before ';' token
decoder.cpp:4:21: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
return c[q]&1<<h-1?1:0;
~^~