Submission #894413

#TimeUsernameProblemLanguageResultExecution timeMemory
894413AtabayRajabliCombo (IOI18_combo)C++17
Compilation error
0 ms0 KiB
#include "combo.h" #include <bits/stdc++.h> string guess_sequence(int N) { string p = "ABXY"; string res = ""; if(press("A"))res = "A"; else if(press("B"))res = "B"; else if(press("X"))res = "X"; else (press("Y"))res = "Y"; while(res.size() < N) { for(char c : p) { if(c == res[0])continue; if(press(res + c) == res.size() + 1) { res += c; break; } } } return res; }

Compilation message (stderr)

combo.cpp:4:1: error: 'string' does not name a type; did you mean 'stdin'?
    4 | string guess_sequence(int N)
      | ^~~~~~
      | stdin