Submission #789147

#TimeUsernameProblemLanguageResultExecution timeMemory
789147Ronin13Parrots (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 ans[N]; fill(ans, ans + N, 0); for(int i = 0; i < L; i++){ int o = x[i] / 8; ans[o] += (1 << (x[i] % 8)); } for(int i = 0; i < N; i++) output(ans[i]); }
#include "encoder.h" #include "encoderlib.h" void encode(int N, int M[]) { for(int i= 0; i < N; i++){ int x = i * 8; for(int j = 0; j < 8; j++){ if(M[i] & (1 << j)){ send(x + j); } } } }

Compilation message (stderr)

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

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