제출 #993000

#제출 시각아이디문제언어결과실행 시간메모리
993000kokoxuya앵무새 (IOI11_parrots)C++14
컴파일 에러
0 ms0 KiB
#include "encoder.h" #include "encoderlib.h" #include <bits/stdc++.h> using namespace std; //#define int long long #define pb push_back #define pii pair<int,int> #define ss second #define ff first #define debu(x) (cerr << #x << " = "<< x << "\n") #define bitout(x,y) {\ cerr << #x << " : ";\ for (int justforbits = y; justforbits >=0; justforbits--)cout << (((1 << justforbits) & x)>=1);\ cout << "\n";\ } void encode(int N, int M[]) { for (int a = 0; a < N; a++) { for (int b = 0; b < 8; b++) { if ((M[a] & (1 << b))==0)continue; int thenum = (a << 3); //cout << a << " , "; //bitout(a,8); thenum += b; //bitout(thenum,8); send(thenum); } } }

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

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