Submission #131222

#TimeUsernameProblemLanguageResultExecution timeMemory
131222arthurconmyParrots (IOI11_parrots)C++14
Compilation error
0 ms0 KiB
/* Arthur Conmy / arthurconmy */ #include <iostream> #include <fstream> #include <vector> #include <string> #include <cmath> #include <algorithm> #include <map> #include <queue> #include <bitset> #include <random> #include <stack> #include <deque> #include <chrono> #include "decoder.h" #include "decoderlib.h" #include "encoder.h" #include "encoderlib.h" using namespace std; void encode(int N, int M[]) { for(int i=0; i<N; i++) { for(int j=0; j<8; j++) { if(1<<j & M[i]) send((8*i) + j); } } } void decode(int N, int L, int X[]) { vector<int> ans(N); for(int ind=0; ind<L; ind++) { int i=int(X[ind]/8); int j=X[ind]%8; ans[i]+=1<<j; } for(auto u:ans) output(u); }

Compilation message (stderr)

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

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