encoder.cpp: In function 'void encode(int, int, int, int*, int*)':
encoder.cpp:26:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | while(j < d.size()){
| ~~^~~~~~~~~~
encoder.cpp:48:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | while(j < b.size()){
| ~~^~~~~~~~~~
decoder.cpp: In function 'void encode(int, int, int, int*, int*)':
decoder.cpp:26:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | while(j < d.size()){
| ~~^~~~~~~~~~
decoder.cpp:48:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | while(j < b.size()){
| ~~^~~~~~~~~~
/usr/bin/ld: /tmp/ccdbvZe6.o: in function `encode(int, int, int, int*, int*)':
decoder.cpp:(.text+0x2d6): undefined reference to `encode_bit(int)'
/usr/bin/ld: decoder.cpp:(.text+0x2ee): undefined reference to `encode_bit(int)'
/usr/bin/ld: decoder.cpp:(.text+0x50b): undefined reference to `encode_bit(int)'
/usr/bin/ld: decoder.cpp:(.text+0x532): undefined reference to `encode_bit(int)'
/usr/bin/ld: decoder.cpp:(.text+0x540): undefined reference to `encode_bit(int)'
/usr/bin/ld: /tmp/cc2vXcb8.o: in function `main':
grader_decoder.c:(.text.startup+0x126): undefined reference to `decode(int, int)'
collect2: error: ld returned 1 exit status