Submission #335596

#TimeUsernameProblemLanguageResultExecution timeMemory
335596JoshcParrots (IOI11_parrots)C++11
Compilation error
0 ms0 KiB
#include "encoder.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" 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:6:29: error: 'output' was not declared in this scope
    6 |     for (int i=0; i<N; i++) output(ans[i]);
      |                             ^~~~~~

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