Submission #67237

#TimeUsernameProblemLanguageResultExecution timeMemory
67237zetapiParrots (IOI11_parrots)C++14
Compilation error
0 ms0 KiB
#include <encoder.h> #include <encoderlib.h> #include <decoder.h> #include <decoderlib.h> #include <bits/stdc++.h> using namespace std; 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/cchJItuh.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/ccWoI2AD.o: In function `main':
grader_decoder.cpp:(.text.startup+0x1f6): undefined reference to `decode(int, int, int*)'
collect2: error: ld returned 1 exit status