Submission #955587

#TimeUsernameProblemLanguageResultExecution timeMemory
955587ASGA_RedSeaCombo (IOI18_combo)C++17
Compilation error
0 ms0 KiB
#include "compo.h" #include <bits/stdc++.h> using namespace std; //int press(string s){cout<<"press : "<<s<<" : ";int r;cin>>r;return r;} string guess_sequence(int n){ string s; string arr = "ABXY"; for(auto& i : arr){ string ss;ss += i; if(press(ss) == 1){ s += i; break; } } arr.erase(find(arr.begin(),arr.end(),s[0]) - arr.begin(),1); while(s.size() < n){ string p = s; for(auto& i : arr){ p += i; int r = press(p); if(r == s.size() + 1)break; p.pop_back(); } s = p; } return s; } //int main(){int n;cin>>n;cout<<guess_sequence(n);return 0;}

Compilation message (stderr)

combo.cpp:1:10: fatal error: compo.h: No such file or directory
    1 | #include "compo.h"
      |          ^~~~~~~~~
compilation terminated.