제출 #568395

#제출 시각아이디문제언어결과실행 시간메모리
568395AndrejSh3앵무새 (IOI11_parrots)C++17
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> #include"decoder.h" #include"decoderlib.h" /* Strategy: *) Encoder: Encoder will send the following number: xxxxyyyyyyyy xxxx is the index of the number in the original message yyyyyyyy is the value of the number in the original message *) Decoder: Decoder will take the given numbers xxxxyyyyyyyy and create an array with the original message */ void recieveValue( int Xi, int &x, int &y ){ y = Xi & (0b11111111); Xi >>= 8; x = Xi; } void decode( int N, int L, int X[] ){ int A[N] = {}; int x, y; for( int i = 0 ; i < L ; i++ ){ recieveValue( X[i], x, y ); A[x] = y; } for( int i = 0 ; i < N ; i++ ) output(A[i]); }

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

/usr/bin/ld: /tmp/ccnCBMxm.o: in function `main':
grader_encoder.cpp:(.text.startup+0x162): undefined reference to `encode(int, int*)'
/usr/bin/ld: /tmp/ccW3MZDl.o: in function `decode(int, int, int*)':
encoder.cpp:(.text+0xd7): undefined reference to `output(int)'
collect2: error: ld returned 1 exit status

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