Submission #1219874

#TimeUsernameProblemLanguageResultExecution timeMemory
1219874SpyrosAlivParrots (IOI11_parrots)C++20
Compilation error
0 ms0 KiB
#include "encoder.h" #include "encoderlib.h" #include "decoder.h" #include "decoderlib.h" #include <bits/stdc++.h> using namespace std; void encode(int n, int m[]) { int fin = 0; for (int i = 0; i < n; i++) { fin |= (1 << m[i]); } send(fin); } void decode(int n, int l, int x[]) { for (int i = 0; i < n; i++) { if ((x[0] >> i) & 1) output(1); else output(0); } }
#include "encoder.h" #include "encoderlib.h" #include "decoder.h" #include "decoderlib.h" #include <bits/stdc++.h> using namespace std; void encode(int n, int m[]) { int fin = 0; for (int i = 0; i < n; i++) { fin |= (1 << m[i]); } send(fin); } void decode(int n, int l, int x[]) { for (int i = 0; i < n; i++) { if ((x[0] >> i) & 1) output(1); else output(0); } }

Compilation message (stderr)

# 1번째 컴파일 단계

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