Submission #1129901

#TimeUsernameProblemLanguageResultExecution timeMemory
1129901pedreitorzeldaCombo (IOI18_combo)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#include <combo.h>
using namespace std;
string guess_sequence(int N){
    string ans = "";
    vector<char>possible = {'A','B','X','Y'};
    for(int i=0;i<N;i++){
        for(int j=0;j<3;j++){
            string q = ans+possible[j];
            int tmp = press(q);
            if(tmp==i+1){
                ans+=possible[j];
                break;
            }
        }if(ans.size()==i)ans+=possible[3];
    }
    return ans;
}

Compilation message (stderr)

combo.cpp:2:10: fatal error: combo.h: No such file or directory
    2 | #include <combo.h>
      |          ^~~~~~~~~
compilation terminated.