encoder.cpp: In function 'int main()':
encoder.cpp:23:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &type, &n, &t) ;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
encoder.cpp:27:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &a , &b ) ;
~~~~~^~~~~~~~~~~~~~~~~~
/tmp/ccF8OmcR.o: In function `main':
grader_encode.c:(.text.startup+0x0): multiple definition of `main'
/tmp/cc2262p3.o:encoder.cpp:(.text.startup+0x0): first defined here
/tmp/ccF8OmcR.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/ccmur9m2.o: In function `main':
grader_decode.c:(.text.startup+0x19f): undefined reference to `decode(int, int, int)'
collect2: error: ld returned 1 exit status