답안 #916570

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
916570 2024-01-26T06:14:27 Z Wansur 앵무새 (IOI11_parrots) C++14
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>
#define f first
#define s second
#define ent '\n';

using namespace std;
typedef long long ll;
const int mx=2e5+12;

void output(int b);
void send(int a);


void decode(int m, int n, int a[]){
	for(int i=0;i<m;i++){
		output(0);
	}
}

void encode(int n, int a[]){
	for(int i=0;i<n;i++){
		send(a[i]);
		a[i]=0;
	}
}



    

Compilation message

/usr/bin/ld: /tmp/cclNnv4Z.o: in function `decode(int, int, int*)':
encoder.cpp:(.text+0x1e): undefined reference to `output(int)'
collect2: error: ld returned 1 exit status

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