encoder.cpp: In function 'int encode(int, int, int)':
encoder.cpp:5:11: error: 'exp2' was not declared in this scope
5 | if (exp2(p)<=a) {
| ^~~~
encoder.cpp:8:11: error: 'exp2' was not declared in this scope
8 | if (exp2(p)<=b) {
| ^~~~
encoder.cpp:18:11: error: 'exp2' was not declared in this scope
18 | if (exp2(p)<=a) {
| ^~~~
encoder.cpp:21:11: error: 'exp2' was not declared in this scope
21 | if (exp2(p)<=b) {
| ^~~~
encoder.cpp:26:2: warning: control reaches end of non-void function [-Wreturn-type]
26 | }
| ^
decoder.cpp: In function 'int decode(int, int, int)':
decoder.cpp:8:11: error: 'exp2' was not declared in this scope
8 | if (exp2(p)<=k) {
| ^~~~
decoder.cpp:21:11: error: 'exp2' was not declared in this scope
21 | if (exp2(p)<=k) {
| ^~~~
decoder.cpp:30:1: warning: control reaches end of non-void function [-Wreturn-type]
30 | }
| ^