Submission #900275

#TimeUsernameProblemLanguageResultExecution timeMemory
900275boyliguanhanParrots (IOI11_parrots)C++17
Compilation error
0 ms0 KiB
#include "decoder.h" #include "decoderlib.h" #include<bits/stdc++.h> using namespace std; void decode(int N, int L, int X[]) { int res[N]{},cnt[256]{}, inv=0; for(int i = 0; i < L; i++) { cnt[X[i]]++,res[X[i]/4] += 1 << (X[i]&3)*2; if(cnt[X[i]]==4) res[0]-=4,inv=1; } for(auto i: res) output(inv?255-i:i); }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccBMoLlb.o: in function `main':
grader_encoder.cpp:(.text.startup+0x162): undefined reference to `encode(int, int*)'
/usr/bin/ld: /tmp/ccWMOuzc.o: in function `decode(int, int, int*)':
encoder.cpp:(.text+0x133): undefined reference to `output(int)'
collect2: error: ld returned 1 exit status

/usr/bin/ld: /tmp/ccZvzGkY.o: in function `main':
grader_decoder.cpp:(.text.startup+0x1ef): undefined reference to `decode(int, int, int*)'
collect2: error: ld returned 1 exit status