Submission #67235

#TimeUsernameProblemLanguageResultExecution timeMemory
67235zetapiParrots (IOI11_parrots)C++14
Compilation error
0 ms0 KiB
#include <encoder.h> #include <encoderlib.h> #include <decoder.h> #include <decoderlib.h> void encode(int N,int M[]) { int res=0; for(int A=0;A<N;A++) if(M[A]) res+=(1<<A); send(res); return ; } void decode(int N, int L, int X[]) { for(int A=0;A<N;A++) if(X[0]&(1<<A)) output(1); else output(0); return ; }

Compilation message (stderr)

/tmp/ccuv3AW7.o: In function `decode(int, int, int*)':
encoder.cpp:(.text+0x61): undefined reference to `output(int)'
encoder.cpp:(.text+0x78): undefined reference to `output(int)'
collect2: error: ld returned 1 exit status

/tmp/cc0DJ2st.o: In function `main':
grader_decoder.cpp:(.text.startup+0x1f6): undefined reference to `decode(int, int, int*)'
collect2: error: ld returned 1 exit status