제출 #1226857

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

string guess_sequence(int n) {
    string ans;
    for (int i = 0; i < n; ++i) {
        for (char c : {'A', 'B', 'X', 'Y'}) {
            ans.push_back(c);
            if (press(ans))
                break;           
            ans.pop_back();      
        }
    }
    return ans;
}

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

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