Submission #164327

#TimeUsernameProblemLanguageResultExecution timeMemory
164327aggu_01000101Combo (IOI18_combo)C++14
Compilation error
0 ms0 KiB
#include <iostream>
#include "combo.h"
#include <cmath>
#include <vector>
#include <algorithm>
#include <queue>
#include <fstream>
#include <set>
#include <iomanip>
#include <unordered_map>
#define INF 1e16
#define int long long
#define N (int)1e5 + 5
using namespace std;
string guess_sequence(int n){
    char lol[] = {'A', 'B', 'X', 'Y'};
    int taken = 0;
    while(press("" + lol[taken])==0) taken++;
    string s = "" + lol[taken];
    for(int i = 1;i<n;i++){
        for(int j = 0;j<4;j++){
            if(j==taken) continue;
            int rn = press(s + lol[j]);
            if(rn==(i+1)){
                s = s+lol[j];
                j = 5;
            }
        }
    }
    return s;
}

Compilation message (stderr)

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