encoder.cpp: In function 'int encode(int, int, int)':
encoder.cpp:8:40: error: 'mask' was not declared in this scope
if( __builtin_popcount( m ) == 6 ) mask[ cnt++ ] = m;
^~~~
encoder.cpp:10:7: error: 'mask' was not declared in this scope
x = mask[ x ];
^~~~
encoder.cpp:15:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
decoder.cpp: In function 'int decode(int, int, int)':
decoder.cpp:9:40: error: 'mask' was not declared in this scope
if( __builtin_popcount( m ) == 6 ) mask[ cnt++ ] = m;
^~~~
decoder.cpp:11:16: error: 'mask' was not declared in this scope
if( isActive( mask[ q ] , h ) ) return 1;
^~~~