Submission #67234

#TimeUsernameProblemLanguageResultExecution timeMemory
67234zetapiParrots (IOI11_parrots)C++14
Compilation error
0 ms0 KiB
#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)

encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:10:4: error: 'send' was not declared in this scope
    send(res);
    ^~~~

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