Submission #793947

#TimeUsernameProblemLanguageResultExecution timeMemory
793947t6twotwoParrots (IOI11_parrots)C++17
Compilation error
0 ms0 KiB
#include "encoder.h" #include "encoderlib.h" #include <bits/stdc++.h> using namespace std; void encode(int N, vector<int> M) { for (int i = 0; i < N; i++) { for (int j = 0; j < 4; j++) { for (int k = 0; k < (M[i] >> (6 - 2 * j) & 3); k++) { send(i * 4 + j); } } } }
#include "decoder.h" #include "decoderlib.h" #include <bits/stdc++.h> using namespace std; void decode(int N, int L, vector<int> X) { int f[256]{}; for (int i = 0; i < L; i++) { f[X[i]]++; } for (int i = 0; i < N; i++) { int a = 0; for (int j = 0; j < 4; j++) { a *= 4; a += f[i * 4 + j]; } output(a); } }

Compilation message (stderr)

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

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