encoder.cpp: In function 'int createAdvice(int, int, int)':
encoder.cpp:30:1: warning: control reaches end of non-void function [-Wreturn-type]
30 | }
| ^
/tmp/ccoBK83P.o: In function `main':
grader_encode.c:(.text.startup+0x129): undefined reference to `encode(int, int, int)'
collect2: error: ld returned 1 exit status
decoder.cpp: In function 'bool receiveAdvice(int, int)':
decoder.cpp:25:11: error: expected ';' before 'return'
25 | init()
| ^
| ;
26 | return find(ans[q].begin(), ans[q].end(), h) != ans[q].end();
| ~~~~~~
decoder.cpp:27:1: warning: no return statement in function returning non-void [-Wreturn-type]
27 | }
| ^