제출 #636397

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

string guessing( int N ){
    string ans = "";
    for ( int i = 1; i <= N; i++ ){
        string t = ans + "A";
        if ( press(t) == i ) {
            ans += "A";
            continue;
        }

        t = ans + "B";
        if ( press(t) == i ){
            ans += "B";
            continue;
        }

        t = ans + "X";
        if ( press(t) == i ){
            ans += "X";
            continue;
        }

        ans += "Y";
    }
    return ans;
}

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

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