제출 #67237

#제출 시각아이디문제언어결과실행 시간메모리
67237zetapiParrots (IOI11_parrots)C++14
컴파일 에러
0 ms0 KiB
#include <encoder.h>
#include <encoderlib.h>
#include <decoder.h>
#include <decoderlib.h>
#include <bits/stdc++.h>

using namespace std;

void encode(int N,int M[])
{
  	int res=0;
  	for(int A=0;A<N;A++)
  		if(M[A])
  			res+=(1<<A);
  	send(res);
    return ;
}

void decode(int N, int L, int X[])
{
  	for(int A=0;A<N;A++)
  		if(X[0]&(1<<A))
  			output(1);
  		else
  			output(0);
  	return ;
}

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

/tmp/cchJItuh.o: In function `decode(int, int, int*)':
encoder.cpp:(.text+0x61): undefined reference to `output(int)'
encoder.cpp:(.text+0x78): undefined reference to `output(int)'
collect2: error: ld returned 1 exit status

/tmp/ccWoI2AD.o: In function `main':
grader_decoder.cpp:(.text.startup+0x1f6): undefined reference to `decode(int, int, int*)'
collect2: error: ld returned 1 exit status