encoder.cpp: In function 'int encode(int, int, int)':
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;
| ^
encoder.cpp:33:1: warning: control reaches end of non-void function [-Wreturn-type]
33 | }
| ^
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;
| ^