Submission #518443

#TimeUsernameProblemLanguageResultExecution timeMemory
518443tabrParrots (IOI11_parrots)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #ifdef tabr #include "library/debug.cpp" #else #define debug(...) #endif void send(long long); void output(long long); #include "encoder.h" #include "encoderlib.h" void encode(int n, int a[]) { for (int i = 0; i < n; i++) { send(a[i] + 256 * i); } } #include "decoder.h" #include "decoderlib.h" void decode(int n, int l, int a[]) { sort(a, a + l); for (int i = 0; i < n; i++) { output(a[i] % 256); } } #ifdef tabr int main() { ios::sync_with_stdio(false); cin.tie(0); return 0; } #endif
#include <bits/stdc++.h> using namespace std; #ifdef tabr #include "library/debug.cpp" #else #define debug(...) #endif void send(long long); void output(long long); #include "encoder.h" #include "encoderlib.h" void encode(int n, int a[]) { for (int i = 0; i < n; i++) { send(a[i] + 256 * i); } } #include "decoder.h" #include "decoderlib.h" void decode(int n, int l, int a[]) { sort(a, a + l); for (int i = 0; i < n; i++) { output(a[i] % 256); } } #ifdef tabr int main() { ios::sync_with_stdio(false); cin.tie(0); return 0; } #endif

Compilation message (stderr)

/usr/bin/ld: /tmp/cc39NGeP.o: in function `decode(int, int, int*)':
encoder.cpp:(.text+0x458): undefined reference to `output(int)'
collect2: error: ld returned 1 exit status

/usr/bin/ld: /tmp/ccoRODuE.o: in function `encode(int, int*)':
decoder.cpp:(.text+0x376): undefined reference to `send(int)'
collect2: error: ld returned 1 exit status