encoder.cpp: In function 'int main()':
encoder.cpp:22:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
22 | while(((1<<j)&x)&&((1<<j)&y)||!((1<<j)&x)&&!((1<<j)&y))
| ~~~~~~~~~~^~~~~~~~~~~~
/usr/bin/ld: /tmp/ccElot5G.o: in function `main':
grader_encode.c:(.text.startup+0x0): multiple definition of `main'; /tmp/ccm5EYKI.o:encoder.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccElot5G.o: in function `main':
grader_encode.c:(.text.startup+0x129): undefined reference to `encode(int, int, int)'
collect2: error: ld returned 1 exit status
/usr/bin/ld: /tmp/ccKjArJr.o: in function `main':
grader_decode.c:(.text.startup+0x22f): undefined reference to `decode(int, int, int)'
collect2: error: ld returned 1 exit status