encoder.cpp: In function 'int encode(int, int, int)':
encoder.cpp:22:24: error: 'h' was not declared in this scope
22 | fr(i,0,12) if(i<6) h.pb(1);
| ^
encoder.cpp:23:10: error: 'h' was not declared in this scope
23 | else h.pb(0);
| ^
encoder.cpp:28:18: error: 'h' was not declared in this scope
28 | code[cnt].pb(h[i]);
| ^
encoder.cpp:31:31: error: 'h' was not declared in this scope
31 | }while(next_permutation(all(h)));
| ^
encoder.cpp:13:16: note: in definition of macro 'all'
13 | #define all(v) v.begin(),v.end()
| ^
encoder.cpp:21:7: warning: unused variable 'mask' [-Wunused-variable]
21 | int mask,i,j,cnt=1,z;
| ^~~~
encoder.cpp:21:14: warning: unused variable 'j' [-Wunused-variable]
21 | int mask,i,j,cnt=1,z;
| ^
encoder.cpp:21:22: warning: unused variable 'z' [-Wunused-variable]
21 | int mask,i,j,cnt=1,z;
| ^
decoder.cpp: In function 'int decode(int, int, int)':
decoder.cpp:20:7: warning: unused variable 'mask' [-Wunused-variable]
20 | int mask,i,j,cnt=1,z;
| ^~~~
decoder.cpp:20:14: warning: unused variable 'j' [-Wunused-variable]
20 | int mask,i,j,cnt=1,z;
| ^
decoder.cpp:20:22: warning: unused variable 'z' [-Wunused-variable]
20 | int mask,i,j,cnt=1,z;
| ^