encoder.cpp: In function 'int encode(int, int, int)':
encoder.cpp:26:12: error: 'popcount' was not declared in this scope
26 | if(popcount(i) == 6){
| ^~~~~~~~
encoder.cpp:23:22: warning: control reaches end of non-void function [-Wreturn-type]
23 | vector<int> v(n+1);
| ^
decoder.cpp: In function 'int encode(int, int, int)':
decoder.cpp:23:22: warning: control reaches end of non-void function [-Wreturn-type]
23 | vector<int> v(n+1);
| ^
/usr/bin/ld: /tmp/ccivLyDM.o: in function `main':
grader_decode.c:(.text.startup+0x22f): undefined reference to `decode(int, int, int)'
collect2: error: ld returned 1 exit status