Submission #335597

#TimeUsernameProblemLanguageResultExecution timeMemory
335597JoshcParrots (IOI11_parrots)C++11
Compilation error
0 ms0 KiB
#include "encoder.h" #include "encoderlib.h" void decode(int N, int L, int X[]) { int ans[66] = {0}; for (int i=0; i<L; i++) ans[X[i]/8] += 1<<(X[i]%8); for (int i=0; i<N; i++) output(ans[i]); }
#include "decoder.h" #include "decoderlib.h" void decode(int N, int L, int X[]) { int ans[66] = {0}; for (int i=0; i<L; i++) ans[X[i]/8] += 1<<(X[i]%8); for (int i=0; i<N; i++) output(ans[i]); }

Compilation message (stderr)

encoder.cpp: In function 'void decode(int, int, int*)':
encoder.cpp:7:29: error: 'output' was not declared in this scope
    7 |     for (int i=0; i<N; i++) output(ans[i]);
      |                             ^~~~~~