Submission #64160

#TimeUsernameProblemLanguageResultExecution timeMemory
64160zubecParrots (IOI11_parrots)C++14
Compilation error
0 ms0 KiB
#include "decoder.h" #include "decoderlib.h" #include <bits/stdc++.h> using namespace std; int ans[100]; void decode(int N, int L, int X[]){ for (int i = 0; i < N; i++) ans[i] = 0; for (int i = 0; i < L; i++){ ans[X[i]&((1<<5)-1)] |= (1<<(X[i]>>5)); } for (int i = 0; i < N; i++) output(ans[i]); }
#include "decoder.h" #include "decoderlib.h" #include <bits/stdc++.h> using namespace std; int ans[100]; void decode(int N, int L, int X[]){ for (int i = 0; i < L; i++){ ans[X[i]&((1<<5)-1)] |= (1<<(X[i]>>5)); } for (int i = 0; i < N; i++) output(ans[i]); }

Compilation message (stderr)

/tmp/cccX2c7s.o: In function `main':
grader_encoder.cpp:(.text.startup+0x141): undefined reference to `encode(int, int*)'
/tmp/ccYmcUWV.o: In function `decode(int, int, int*)':
encoder.cpp:(.text+0x7c): undefined reference to `output(int)'
collect2: error: ld returned 1 exit status