제출 #749937

#제출 시각아이디문제언어결과실행 시간메모리
749937vjudge1콤보 (IOI18_combo)C++17
컴파일 에러
0 ms0 KiB
#include"combo.h"
#include<bits/stdc++.h>
#define ll long long
#define endl "\n"
using namespace std;

char a[4] = {'A', 'B', 'X', 'Y'};

ll n;

string guess_sequence(ll N)
{
	n = N;
	string s = "";
	for(ll i = 1; i <= n; i++)
	{
		ll loc = 0;
		ll ret = 0;
		while(ret != i)	ret = press(s + a[loc]);
		s += a[loc];
	}
	return s;
}

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

/usr/bin/ld: /tmp/cc21U1HP.o: in function `main':
grader.cpp:(.text.startup+0x4c): undefined reference to `guess_sequence[abi:cxx11](int)'
collect2: error: ld returned 1 exit status