encoder.cpp: In function 'int A(int, int)':
encoder.cpp:16:37: warning: 'least_differing_bit' may be used uninitialized in this function [-Wmaybe-uninitialized]
return (least_differing_bit << 1) | x0;
~~~~~~~~~~~~~~~~~~~~~^~~~~
encoder.cpp: In function 'void test()':
encoder.cpp:14:46: warning: 'least_differing_bit' may be used uninitialized in this function [-Wmaybe-uninitialized]
return least_differing_bit | (x0 << 3);
^
encoder.cpp:5:9: note: 'least_differing_bit' was declared here
int least_differing_bit;
^~~~~~~~~~~~~~~~~~~
encoder.cpp: In function 'int main()':
encoder.cpp:14:46: warning: 'least_differing_bit' may be used uninitialized in this function [-Wmaybe-uninitialized]
return least_differing_bit | (x0 << 3);
^
encoder.cpp:5:9: note: 'least_differing_bit' was declared here
int least_differing_bit;
^~~~~~~~~~~~~~~~~~~
/tmp/ccVw2Za6.o: In function `main':
grader_encode.c:(.text.startup+0x0): multiple definition of `main'
/tmp/ccaBW7O1.o:encoder.cpp:(.text.startup+0x0): first defined here
/tmp/ccVw2Za6.o: In function `main':
grader_encode.c:(.text.startup+0x10a): undefined reference to `encode(int, int, int)'
collect2: error: ld returned 1 exit status
/tmp/ccNIOuoW.o: In function `main':
grader_decode.c:(.text.startup+0x19f): undefined reference to `decode(int, int, int)'
collect2: error: ld returned 1 exit status