Submission #51823

#TimeUsernameProblemLanguageResultExecution timeMemory
51823rondojimParrots (IOI11_parrots)C++17
Compilation error
0 ms0 KiB
#include "encoder.h"
#include "encoderlib.h"

void encode(int N, int M[]){
	for(int i=0; i<N; ++i)
      for(int j=0; j<8; ++j) if(M[i] & (1 << (8 - j - 1))) send(16 * i + 2 * j);
}
#include "encoder.h"
#include "encoderlib.h"

void encode(int N, int M[]){
	for(int i=0; i<N; ++i)
      for(int j=0; j<8; ++j) if(M[i] & (1 << (8 - j - 1))) send(8 * i + j);
}

Compilation message (stderr)

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