제출 #415244

#제출 시각아이디문제언어결과실행 시간메모리
415244fvogel499앵무새 (IOI11_parrots)C++14
컴파일 에러
0 ms0 KiB
void encode(int N, int M []) { int c = 0; for (int i = 0; i < N; i++) if (M[i] == 1) c += 1<<i; send(c); } void decode(int N, int L, int X []) { output(X[0]); }

컴파일 시 표준 에러 (stderr) 메시지

encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:4:5: error: 'send' was not declared in this scope
    4 |     send(c);
      |     ^~~~
encoder.cpp: In function 'void decode(int, int, int*)':
encoder.cpp:8:5: error: 'output' was not declared in this scope
    8 |     output(X[0]);
      |     ^~~~~~

/usr/bin/ld: /tmp/ccXQtCFu.o: in function `main':
grader_decoder.cpp:(.text.startup+0x1ef): undefined reference to `decode(int, int, int*)'
collect2: error: ld returned 1 exit status