제출 #900275

#제출 시각아이디문제언어결과실행 시간메모리
900275boyliguanhan앵무새 (IOI11_parrots)C++17
컴파일 에러
0 ms0 KiB
#include "decoder.h" #include "decoderlib.h" #include<bits/stdc++.h> using namespace std; void decode(int N, int L, int X[]) { int res[N]{},cnt[256]{}, inv=0; for(int i = 0; i < L; i++) { cnt[X[i]]++,res[X[i]/4] += 1 << (X[i]&3)*2; if(cnt[X[i]]==4) res[0]-=4,inv=1; } for(auto i: res) output(inv?255-i:i); }

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

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

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