제출 #335596

#제출 시각아이디문제언어결과실행 시간메모리
335596Joshc앵무새 (IOI11_parrots)C++11
컴파일 에러
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]); }

컴파일 시 표준 에러 (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]);
      |                             ^~~~~~