Submission #916728

#TimeUsernameProblemLanguageResultExecution timeMemory
916728_VIBECombo (IOI18_combo)C++17
Compilation error
0 ms0 KiB
string guess_sequence(int N){ //querying for first pos set<char> s={'A','X','B','Y'}; string ans; for(auto x:s){ if(press(to_string(x))==1){ ans+=x; s.erase(x);break; } } int val=1; for(int i=1;i<n;i++){ for(auto x:s){ ans+=x; if(press(ans)==val+1) break; ans.pop_back(); } } return ans; }

Compilation message (stderr)

combo.cpp:1:1: error: 'string' does not name a type
    1 | string guess_sequence(int N){
      | ^~~~~~